Definition at line 786 of file matrixsqlclient.php.
Adds a line to the command line history.
- Parameters
-
string | $line | Line to be added in the history. |
- Returns
- bool Returns true on success or false on failure.
Definition at line 840 of file matrixsqlclient.php.
Reads a command history from a file.
- Parameters
-
string | $filename | Path to the filename containing the command history. |
- Returns
- boolean true on success or false on failure
Definition at line 852 of file matrixsqlclient.php.
Returns data from a keypress. This will either be a single character, or a set of control characters.
- Returns
- Returns a string containing a character or set of control characters.
Definition at line 1074 of file matrixsqlclient.php.
readline |
( |
|
$prompt = null | ) |
|
Reads a single line from the user.
- Parameters
-
string | $prompt | You may specify a string with which to prompt the user. |
- Returns
- Returns a single string from the user.
Definition at line 889 of file matrixsqlclient.php.
registerAutocompleteCallback |
( |
|
$f | ) |
|
Registers the function that will be called when TAB is pressed on the prompt: function takes one parameter, the "hint", and returns the extra text to be added to the current line
- Parameters
-
callback | $f | callback the function to call for autocompletion |
- Returns
- void
Definition at line 1121 of file matrixsqlclient.php.
Sets the maximum number of history items that will be saved to file.
- Parameters
-
integer | $c | Maximum number of history items to save to file. |
- Returns
- true on success or false on failure
Definition at line 872 of file matrixsqlclient.php.
writeHistory |
( |
|
$filename | ) |
|
Writes the command history to a file.
- Parameters
-
string | $filename | Path to the saved file. |
- Returns
- boolean true on success or false on failure
Definition at line 1133 of file matrixsqlclient.php.
The documentation for this class was generated from the following file: