|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| __construct ($log, $rotation_index=NULL) | |
| getLogSize ($log, $rotation_index) | |
| getNextEntry () | |
| getCurrentProgress () | |
Protected Member Functions | |
| _getLogLine ($file, $offset) | |
| _decodeLine ($line) | |
Protected Attributes | |
| $offset | |
| $log | |
| $rotation_index | |
| $total_size | |
| $blank_query | |
Definition at line 26 of file funnelback_log_iterator.inc.
| __construct | ( | $log, | |
$rotation_index = NULL |
|||
| ) |
Constructor
| string | $log | 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 44 of file funnelback_log_iterator.inc.
|
protected |
Decode the line to something useful for us to work with
Log Format: [DATE_TIME][REQUESTER_IP][QUERY][INCLUDE_SCOPE][EXCLUDE_SCOPE][START_RANK][NUM_RANKS][CODES][FULL_MATCHES][PARTIAL_MATCHES][ELAPSED_TIME][PROFILE]
| string | $line | The line to decode |
Definition at line 184 of file funnelback_log_iterator.inc.
|
protected |
Get the requested log line
| string | $file | The file to open |
| int | $offset | The current position in the file |
Definition at line 144 of file funnelback_log_iterator.inc.
| getCurrentProgress | ( | ) |
Return the current progress in the form of a percentage
Definition at line 123 of file funnelback_log_iterator.inc.
| getLogSize | ( | $log, | |
| $rotation_index | |||
| ) |
Get the size of the log
| string | $log | The path to the log file |
| int | $rotation_index | the rotation index of the log to act on, NULL to act on the current log |
Definition at line 71 of file funnelback_log_iterator.inc.
| getNextEntry | ( | ) |
Gets the next entry from the log
Returns the next line as an array or FALSE on failure
Definition at line 94 of file funnelback_log_iterator.inc.