|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| __construct ($file='', $autosave=true) | |
| __destruct () | |
| load () | |
| save () | |
| getData () | |
| setData ($data) | |
| setMaxSize ($n) | |
| getMaxSize () | |
Stores an array in memory, and reads/writes that array as lines in a file.
Definition at line 1789 of file matrixsqlclient.php.
| __construct | ( | $file = '', |
|
$autosave = true |
|||
| ) |
Constructor
| string | $file | path and filename where history should be saved |
| boolean | $autosave | whether to save history items to file on destruct |
Definition at line 1818 of file matrixsqlclient.php.
| __destruct | ( | ) |
Destructor - writes data to file if autosave flag is true
Definition at line 1827 of file matrixsqlclient.php.
| getData | ( | ) |
Returns an array of the data stored in memory.
Definition at line 1871 of file matrixsqlclient.php.
| getMaxSize | ( | ) |
Shows the the maximum number of lines that will be saved to file as per the current configuration.
Definition at line 1911 of file matrixsqlclient.php.
| load | ( | ) |
Reads lines from the file into memory.
Definition at line 1839 of file matrixsqlclient.php.
| save | ( | ) |
Saves contents of memory into file.
Definition at line 1857 of file matrixsqlclient.php.
| setData | ( | $data | ) |
Updates the array stored in the memory.
| array | $data | the data to store |
Definition at line 1883 of file matrixsqlclient.php.
| setMaxSize | ( | $n | ) |
Sets the maximum number of lines that will be saved to file.
| integer | $n | number of lines |
Definition at line 1900 of file matrixsqlclient.php.