"TYPO3 4.0.1: tslib_search Class Reference", "datetime" => "Sat Dec 2 19:26:59 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
Public Member Functions | |
register_tables_and_columns ($requestedCols, $allowedCols) | |
explodeCols ($in) | |
register_and_explode_search_string ($sword) | |
split ($origSword, $specchars='+-', $delchars='+.,-') | |
quotemeta ($str) | |
build_search_query ($endClause) | |
build_search_query_for_searchwords () | |
get_operator ($operator) | |
count_query () | |
execute_query () | |
get_searchwords () | |
get_searchwordsArray () | |
Public Attributes | |
$tables = Array () | |
$group_by = 'PRIMARY_KEY' | |
$default_operator = 'AND' | |
$operator_translate_table_caseinsensitive = TRUE | |
$operator_translate_table | |
$sword_array | |
$queryParts | |
$other_where_clauses | |
$fTable | |
$res_offset = 0 | |
$res_shows = 20 | |
$res_count | |
$pageIdList = '' | |
$listOfSearchFields = '' |
Definition at line 88 of file class.tslib_search.php.
|
This creates the search-query. In TypoScript this is used for searching only records not hidden, start/endtimed and fe_grouped! (enable-fields, see tt_content) Sets $this->queryParts
Definition at line 285 of file class.tslib_search.php. |
|
Creates the part of the SQL-sentence, that searches for the search-words ($this->sword_array)
Definition at line 371 of file class.tslib_search.php. |
|
Counts the results and sets the result in $this->res_count
Definition at line 436 of file class.tslib_search.php. |
|
Executes the search, sets result pointer in $this->result
Definition at line 449 of file class.tslib_search.php. |
|
Function that can convert the syntax for entering which tables/fields the search should be conducted in.
Definition at line 168 of file class.tslib_search.php. Referenced by register_tables_and_columns(). |
|
This returns an SQL search-operator (eg. AND, OR, NOT) translated from the current localized set of operators (eg. in danish OG, ELLER, IKKE).
Definition at line 413 of file class.tslib_search.php. Referenced by register_and_explode_search_string(). |
|
Returns URL-parameters with the current search words. Used when linking to result pages so that search words can be highlighted.
Definition at line 462 of file class.tslib_search.php. |
|
Returns an array with the search words in
Definition at line 477 of file class.tslib_search.php. |
|
Local version of quotemeta. This is the same as the PHP function but the vertical line, |, and minus, -, is also escaped with a slash.
Definition at line 269 of file class.tslib_search.php. Referenced by split(). |
|
Takes a search-string (WITHOUT SLASHES or else it'll be a little sppooky , NOW REMEMBER to unslash!!) Sets up $this->sword_array op with operators. This function uses $this->operator_translate_table as well as $this->default_operator
Definition at line 193 of file class.tslib_search.php. References get_operator(), and split(). |
|
Creates the $this->tables-array. The 'pages'-table is ALWAYS included as the search is page-based. Apart from this there may be one and only one table, joined with the pages-table. This table is the first table mentioned in the requested-list. If any more tables are set here, they are ignored.
Definition at line 127 of file class.tslib_search.php. References explodeCols(). |
|
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.
Definition at line 226 of file class.tslib_search.php. References quotemeta(). Referenced by register_and_explode_search_string(). |
|
Initial value: Array ( // case-sensitiv. Defineres the words, which will be operators between words Array ('+' , 'AND'), Array ('|' , 'AND'), Array ('-' , 'AND NOT'), // english Array ('and' , 'AND'), Array ('or' , 'OR'), Array ('not' , 'AND NOT'), ) Definition at line 94 of file class.tslib_search.php. |