CloneableInstantiable
| Methods |
| public __construct(string $fileName) Parse a MySQL Slow Query Log file |
| public getEntries(int $session = -1) : array Return \PHPFUI\MySQLSlowQuery\Entry entries from file
|
public getSessions() : array
|
| public sortEntries(string $sortColumn = 'Query_time', string $sortOrder = 'desc') : self Sort \PHPFUI\MySQLSlowQuery\Entry entries. Defaults to Query_time, desc
|
| Methods |
| protected entrySort(PHPFUI |
| Constants |
| private PHPFUI |
| private PHPFUI |
| Properties |
private array $entries = []
|
private array $extraLines = []
|
| private string $fileName |
| private $handle = NULL |
private array $sessions = []
|
| private string $sortColumn = 'Query_time' |
| private string $sortOrder = 'desc' |
| Methods |
| private getNextLine() : string |
| private getParseMode(string $sessionHeaderFirstLine) : string Derive a string value that determines how the log is parsed. |
| private parse() : void |
| private pushLine(string $line) : self Push line back on to stack for further processing. Lines will later be processed by getNextLine() in the reverse order as they are pushed. |