PAMP:s60 log

From OpenSource

Jump to: navigation, search

PHP API to read entries from host phone's log.

Contents

[edit] Example Usage

<?php

set_filter();

$entry = first_entry();

print_r( $entry );

print "\n************ \n\n";

while( ( $entry = next_entry() ) ){

	print_r( $entry );

	print "\n************ \n\n";
	}
?>

[edit] Functions

[edit] set_filter

 set_filter()
This function initializes log. It must be called before any other function from this extension.

[edit] first_entry

 first_entry() -> array of log entry fields
Get first entry from log and move log pointer to first entry.

[edit] next_entry

 next_entry() -> array of log entry fields
Get next entry from log and move log pointer forward.

[edit] last_entry

 last_entry() -> array of log entry fields
Get last entry from log and move log pointer to last entry.

[edit] prev_entry

 prev_entry() -> array of log entry fields
Get previous entry from log and move log pointer backward.
Personal tools
MediaWiki Resources