TYPO3
7.6
|
Public Member Functions | |
getSearchQueryValue ($query) | |
getTableNameFromCommand ($query) | |
getId ($query) | |
isValidPageJump ($query) | |
isValidCommand ($query) | |
getCommandForTable ($tableName) | |
getCommandForPageJump ($query) | |
Public Attributes | |
const | COMMAND_KEY_INDICATOR = '#' |
const | COMMAND_SPLIT_INDICATOR = ':' |
Protected Member Functions | |
extractKeyFromQuery ($query) | |
Protected Attributes | |
$commandKey = '' | |
$tableName = '' | |
Class for parsing query parameters in backend live search. Detects searches for #pages:23 or #content:mycontent
Definition at line 21 of file QueryParser.php.
|
protected |
Retrieve the validated command key
string | $query |
Definition at line 49 of file QueryParser.php.
Referenced by QueryParser\getSearchQueryValue(), and QueryParser\getTableNameFromCommand().
getCommandForPageJump | ( | $query | ) |
Gets the page jump command for a given query.
string | $query |
Definition at line 146 of file QueryParser.php.
References QueryParser\getCommandForTable(), QueryParser\getId(), and QueryParser\isValidPageJump().
getCommandForTable | ( | $tableName | ) |
Gets the command for the given table.
string | $tableName | The table to find a command for. |
Definition at line 129 of file QueryParser.php.
References $GLOBALS, and QueryParser\$tableName.
Referenced by QueryParser\getCommandForPageJump().
getId | ( | $query | ) |
Verify if an given query contains a page jump command.
string | $query | A valid value looks like '#14' |
Definition at line 88 of file QueryParser.php.
Referenced by QueryParser\getCommandForPageJump().
getSearchQueryValue | ( | $query | ) |
Extract the search value from the full search query which contains also the command part.
string | $query | For example #news:weather |
Definition at line 60 of file QueryParser.php.
References QueryParser\extractKeyFromQuery().
getTableNameFromCommand | ( | $query | ) |
Find the registered table command and retrieve the matching table name.
string | $query |
Definition at line 72 of file QueryParser.php.
References QueryParser\$commandKey, $GLOBALS, QueryParser\$tableName, and QueryParser\extractKeyFromQuery().
Referenced by QueryParser\isValidCommand().
isValidCommand | ( | $query | ) |
Verify if an given query contains an registered command key.
string | $query |
Definition at line 114 of file QueryParser.php.
References QueryParser\getTableNameFromCommand().
isValidPageJump | ( | $query | ) |
Verify if a given query contains a page jump command.
string | $query | A valid value looks like '#14' |
Definition at line 99 of file QueryParser.php.
Referenced by QueryParser\getCommandForPageJump().
|
protected |
Definition at line 26 of file QueryParser.php.
Referenced by QueryParser\getTableNameFromCommand().
|
protected |
Definition at line 31 of file QueryParser.php.
Referenced by QueryParser\getCommandForTable(), and QueryParser\getTableNameFromCommand().
const COMMAND_KEY_INDICATOR = '#' |
Definition at line 36 of file QueryParser.php.
const COMMAND_SPLIT_INDICATOR = ':' |
Definition at line 41 of file QueryParser.php.