2 namespace TYPO3\CMS\Backend\Search\LiveSearch;
51 list($this->commandKey) = explode(
':', substr($query, 1));
63 return str_replace(self::COMMAND_KEY_INDICATOR . $this->commandKey . self::COMMAND_SPLIT_INDICATOR,
'', $query);
76 if (array_key_exists($this->commandKey,
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'livesearch'])) {
90 return str_replace(self::COMMAND_KEY_INDICATOR,
'', $query);
102 if (preg_match(
'~^#(\\d)+$~', $query)) {
117 if (strpos($query, self::COMMAND_KEY_INDICATOR) === 0 && strpos($query, self::COMMAND_SPLIT_INDICATOR) > 1 && $this->
getTableNameFromCommand($query)) {
131 $commandArray = array_keys(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'livesearch'],
$tableName);
132 if (is_array($commandArray)) {
133 $command = $commandArray[0];
150 $id = $this->
getId($query);
151 $resultQuery = self::COMMAND_KEY_INDICATOR . $command . self::COMMAND_SPLIT_INDICATOR . $id;
153 $resultQuery =
false;