Squiz Matrix
4.12.2
|
Public Member Functions | |
__construct ($logname, $rotation_index=NULL) | |
getNextEntry () | |
getLastEntry () | |
& | getCurrentProgress () |
Protected Attributes | |
$offset | |
$logname | |
$rotation_index | |
$total_size | |
Definition at line 28 of file log_iterator.inc.
__construct | ( | $logname, | |
$rotation_index = NULL |
|||
) |
Constructor
string | $logname | the log to act on |
int | $rotation_index | the rotation index of the log to act on, NULL to act on the current log |
Definition at line 45 of file log_iterator.inc.
& getCurrentProgress | ( | ) |
Return the current progress in the form of a percentage
The returned array is in the format:
Array( 'percentage_done' => int // the current progress in the form of a percentage 'complete' => boolean // whether the read is complete )
Definition at line 125 of file log_iterator.inc.
getLastEntry | ( | ) |
Gets the last entry from the log manager
Returns the last line as an array or FALSE on failure
Definition at line 97 of file log_iterator.inc.
getNextEntry | ( | ) |
Gets the next entry from log manager
Returns the next line as an array or FALSE on failure
Definition at line 69 of file log_iterator.inc.