Copied!
  • property string[] $Query
  • property float $Lock_time
  • property float $Query_time
  • property int $Bytes_sent
  • property int $Id
  • property int $Merge_passes
  • property int $Rows_affected
  • property int $Rows_examined
  • property int $Rows_sent
  • property int $Session
  • property int $Thread_id
  • property int $Tmp_disk_tables
  • property int $Tmp_table_sizes
  • property int $Tmp_tables
  • property string $explain
  • property string $Filesort
  • property string $Filesort_on_disk
  • property string $Full_join
  • property string $Full_scan
  • property string $Host
  • property string $Priority_queue
  • property string $QC_hit
  • property string $Schema
  • property string $Time
  • property string $Tmp_table
  • property string $Tmp_table_on_disk
  • property string $User
CloneableInstantiable
Methods
public __construct(array $parameters = [])
 
  • param array<string,string> $parameters
public PHPFUI\MySQLSlowQuery\BaseObject::__get(string $field)
 

Allows for $object->field syntax

  • return string|array<int,mixed>
public PHPFUI\MySQLSlowQuery\BaseObject::__set(string $field, ?mixed $value)
 

Allows for $object->field = $x syntax

  • param mixed $value value to set
  • return mixed returns $value so you can string together assignments
public PHPFUI\MySQLSlowQuery\BaseObject::asArray() : array
 
  • return array<string,mixed>
public setFromLine(string $line) : self
 

Parse a line from the log file into fields (label before :) Additional fields can easily be added if they follow the same format.

Just add an entry to the fields table a above to support a new field.

  • throws \Exception\LogLine
Properties
protected array PHPFUI\MySQLSlowQuery\BaseObject::$fields = []
 
  • var array<string,mixed> $fields
Properties
private array $parameters = []
 
  • var array<string,string>
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration