![]() |
TYPO3
7.6
|
Static Public Member Functions | |
static | isTableUsed ($tableName) |
static | md5inthash ($stringToHash) |
static | getExplodedSearchString ($sword, $defaultOperator, $operatorTranslateTable) |
Static Protected Member Functions | |
static | split ($origSword, $specchars= '+-', $delchars= '+.,-') |
static | getOperator ($operator, $operatorTranslateTable) |
Class with common methods used across various classes in the indexed search. Impementation is provided by various people from the TYPO3 community.
Definition at line 21 of file IndexedSearchUtility.php.
|
static |
Takes a search-string (WITHOUT SLASHES or else it'll be a little sppooky , NOW REMEMBER to unslash!!) Sets up search words with operators.
string | $sword | The input search-word string. |
string | $defaultOperator | |
array | $operatorTranslateTable |
Definition at line 59 of file IndexedSearchUtility.php.
References elseif.
|
staticprotected |
This returns an SQL search-operator (eg. AND, OR, NOT) translated from the current localized set of operators (eg. in danish OG, ELLER, IKKE).
string | $operator | The possible operator to find in the internal operator array. |
array | $operatorTranslateTable | an array of possible operators |
Definition at line 149 of file IndexedSearchUtility.php.
|
static |
Check if the tables provided are configured for usage. This becomes necessary for extensions that provide additional database functionality like indexed_search_mysql.
string | $tableName | Table name to check |
Definition at line 31 of file IndexedSearchUtility.php.
References $GLOBALS.
Referenced by Indexer\checkContentHash(), Indexer\checkExternalDocContentHash(), Indexer\checkMtimeTstamp(), SearchFormController\checkResume(), Indexer\checkWordList(), Indexer\indexRegularDocument(), Indexer\indexTypo3PageContent(), Indexer\init(), Indexer\is_grlist_set(), Indexer\removeOldIndexedFiles(), Indexer\removeOldIndexedPages(), Indexer\submit_grlist(), Indexer\submit_section(), Indexer\submitFile_grlist(), Indexer\submitFile_section(), Indexer\submitFilePage(), Indexer\submitPage(), Indexer\submitWords(), Indexer\update_grlist(), Indexer\updateParsetime(), Indexer\updateRootline(), Indexer\updateSetId(), and Indexer\updateTstamp().
|
static |
md5 integer hash Using 7 instead of 8 just because that makes the integers lower than 32 bit (28 bit) and so they do not interfere with UNSIGNED integers or PHP-versions which has varying output from the hexdec function.
string | $stringToHash | String to hash |
Definition at line 44 of file IndexedSearchUtility.php.
Referenced by Indexer\analyzeBody(), Indexer\analyzeHeaderinfo(), Indexer\indexRegularDocument(), Indexer\indexTypo3PageContent(), Indexer\metaphone(), Indexer\setExtHashes(), Indexer\setT3Hashes(), Indexer\submit_grlist(), Indexer\submitFile_grlist(), and Indexer\update_grlist().
|
staticprotected |
Used to split a search-word line up into elements to search for. This function will detect boolean words like AND and OR, + and -, and even find sentences encapsulated in "" This function could be re-written to be more clean and effective - yet it's not that important.
string | $origSword | The raw sword string from outside |
string | $specchars | Special chars which are used as operators (+- is default) |
string | $delchars | Special chars which are deleted if the append the searchword (+-., is default) |
Definition at line 94 of file IndexedSearchUtility.php.
References elseif.