TYPO3
7.6
|
Additional Inherited Members | |
Static Public Member Functions inherited from ActionController | |
static | getActionMethodParameters ($objectManager) |
Index search frontend
Creates a search form for indexed search. Indexing must be enabled for this to make sense.
Definition at line 28 of file SearchController.php.
|
protected |
Takes the array with resultrows as input and returns the result-HTML-code Takes the "group" var into account: Makes a "section" or "flat" display.
array | $resultRows | Result rows |
int | $freeIndexUid | Pointing to which indexing configuration you want to search in. -1 means no filtering. 0 means only regular indexed content. |
Definition at line 317 of file SearchController.php.
References SearchController\compileSingleResultRow(), elseif, SearchController\getPathFromPageId(), GeneralUtility\quoteJSvalue(), and LocalizationUtility\translate().
Referenced by SearchController\getDisplayResults().
|
protected |
This prints a single result row, including a recursive call for subrows.
array | $row | Search result row |
int | $headerOnly | 1=Display only header (for sub-rows!), 2=nothing at all |
Definition at line 402 of file SearchController.php.
References $GLOBALS, GeneralUtility\formatSize(), SearchController\getPathFromPageId(), SearchController\getSpecialConfigurationForResultRow(), SearchController\linkPage(), SearchController\makeDescription(), SearchController\makeRating(), SearchController\multiplePagesType(), and LocalizationUtility\translate().
Referenced by SearchController\compileResultRows().
formAction | ( | $search = array() | ) |
Sort options about the search form
array | $search | The search data / params |
Definition at line 884 of file SearchController.php.
References SearchController\$searchData, SearchController\getAllAvailableGroupOptions(), SearchController\getAllAvailableIndexConfigurationsOptions(), SearchController\getAllAvailableLanguageOptions(), SearchController\getAllAvailableMediaTypesOptions(), SearchController\getAllAvailableNumberOfResultsOptions(), SearchController\getAllAvailableOperandsOptions(), SearchController\getAllAvailableSearchTypeOptions(), SearchController\getAllAvailableSectionsOptions(), SearchController\getAllAvailableSortDescendingOptions(), SearchController\getAllAvailableSortOrderOptions(), and SearchController\initialize().
|
protected |
get the values for the "group" selector
Definition at line 1156 of file SearchController.php.
References SearchController\removeOptionsFromOptionList(), and LocalizationUtility\translate().
Referenced by SearchController\formAction().
|
protected |
get the values for the "freeIndexUid" selector
Definition at line 1100 of file SearchController.php.
References $GLOBALS, SearchController\getDatabaseConnection(), GeneralUtility\intExplode(), SearchController\removeOptionsFromOptionList(), and LocalizationUtility\translate().
Referenced by SearchController\formAction().
|
protected |
get the values for the "language" selector
Definition at line 1022 of file SearchController.php.
References $GLOBALS, $lang, SearchController\getDatabaseConnection(), SearchController\removeOptionsFromOptionList(), and LocalizationUtility\translate().
Referenced by SearchController\formAction().
|
protected |
get the values for the "media type" selector
Definition at line 985 of file SearchController.php.
References SearchController\removeOptionsFromOptionList(), LocalizationUtility\translate(), and GeneralUtility\trimExplode().
Referenced by SearchController\formAction().
|
protected |
get the values for the "results" selector
Definition at line 1196 of file SearchController.php.
References SearchController\removeOptionsFromOptionList().
Referenced by SearchController\formAction().
|
protected |
get the values for the "defaultOperand" selector
Definition at line 965 of file SearchController.php.
References SearchController\removeOptionsFromOptionList(), and LocalizationUtility\translate().
Referenced by SearchController\formAction().
|
protected |
get the values for the "type" selector
Definition at line 941 of file SearchController.php.
References SearchController\removeOptionsFromOptionList(), and LocalizationUtility\translate().
Referenced by SearchController\formAction().
|
protected |
get the values for the "section" selector Here values like "rl1_" and "rl2_" + a rootlevel 1/2 id can be added to perform searches in rootlevel 1+2 specifically. The id-values can even be commaseparated. Eg. "rl1_1,2" would search for stuff inside pages on menu-level 1 which has the uid's 1 and 2.
Definition at line 1054 of file SearchController.php.
References SearchController\getMenuOfPages(), SearchController\removeOptionsFromOptionList(), and LocalizationUtility\translate().
Referenced by SearchController\formAction().
|
protected |
get the values for the "sortDescending" selector
Definition at line 1176 of file SearchController.php.
References SearchController\removeOptionsFromOptionList(), and LocalizationUtility\translate().
Referenced by SearchController\formAction().
|
protected |
get the values for the "section" selector Here values like "rl1_" and "rl2_" + a rootlevel 1/2 id can be added to perform searches in rootlevel 1+2 specifically. The id-values can even be commaseparated. Eg. "rl1_1,2" would search for stuff inside pages on menu-level 1 which has the uid's 1 and 2.
Definition at line 1136 of file SearchController.php.
References SearchController\removeOptionsFromOptionList(), and LocalizationUtility\translate().
Referenced by SearchController\formAction().
|
protected |
Getter for database connection
Definition at line 1416 of file SearchController.php.
References $GLOBALS.
Referenced by SearchController\getAllAvailableIndexConfigurationsOptions(), SearchController\getAllAvailableLanguageOptions(), SearchController\getFirstSysDomainRecordForPage(), SearchController\getMenuOfPages(), SearchController\makeDescription(), SearchController\searchAction(), and SearchController\writeSearchStat().
|
protected |
Compiles the HTML display of the incoming array of result rows.
array | $searchWords | Search words array (for display of text describing what was searched for) |
array | $resultData | Array with result rows, count, first row. |
int | $freeIndexUid | Pointing to which indexing configuration you want to search in. -1 means no filtering. 0 means only regular indexed content. |
Definition at line 280 of file SearchController.php.
References SearchController\$resultSections, SearchController\$searchWords, SearchController\compileResultRows(), SearchController\getPathFromPageId(), and LocalizationUtility\translate().
Referenced by SearchController\searchAction().
|
protected |
Gets the first sys_domain record for the page, $id
int | $id | Page id |
Definition at line 1354 of file SearchController.php.
References $GLOBALS, and SearchController\getDatabaseConnection().
Referenced by SearchController\getPathFromPageId().
|
protected |
Return the menu of pages used for the selector.
int | $pageUid | Page ID for which to return menu |
Definition at line 1286 of file SearchController.php.
References $GLOBALS, and SearchController\getDatabaseConnection().
Referenced by SearchController\getAllAvailableSectionsOptions().
|
protected |
Returns the path to the page $id
int | $id | Page ID |
string | $pathMP | Content of the MP (mount point) variable |
Definition at line 1308 of file SearchController.php.
References $GLOBALS, and SearchController\getFirstSysDomainRecordForPage().
Referenced by SearchController\compileResultRows(), SearchController\compileSingleResultRow(), SearchController\getDisplayResults(), and SearchController\linkPage().
|
protected |
Splits the search word input into an array where each word is represented by an array with key "sword" holding the search word and key "oper" holding the SQL operator (eg. AND, OR)
Only words with 2 or more characters are accepted Max 200 chars total Space is used to split words, "" can be used search for a whole string AND, OR and NOT are prefix words, overruling the default operator +/|/- equals AND, OR and NOT as operators. All search words are converted to lowercase.
$defOp is the default operator. 1=OR, 0=AND
bool | $defaultOperator | If TRUE, the default operator will be OR, not AND |
Definition at line 802 of file SearchController.php.
References $GLOBALS, SearchController\$searchWords, SearchController\hookRequest(), SearchController\procSearchWordsByLexer(), and LocalizationUtility\translate().
Referenced by SearchController\initialize().
|
protected |
Returns configuration from TypoScript for result row based on ID / location in page tree!
array | $row | Result row |
Definition at line 509 of file SearchController.php.
References $GLOBALS.
Referenced by SearchController\compileSingleResultRow().
|
protected |
Returns an object reference to the hook object if any
string | $functionName | Name of the function you want to call / hook key |
Definition at line 1387 of file SearchController.php.
References $GLOBALS, and GeneralUtility\getUserObj().
Referenced by SearchController\getSearchWords(), SearchController\initialize(), and SearchController\searchAction().
initialize | ( | $searchData = array() | ) |
sets up all necessary object for searching
array | $searchData | The incoming search parameters |
Definition at line 158 of file SearchController.php.
References $GLOBALS, SearchController\$searchData, SearchController\$sword, MathUtility\forceIntegerInRange(), SearchController\getSearchWords(), SearchController\hookRequest(), SearchController\initializeExternalParsers(), GeneralUtility\intExplode(), SearchController\loadSettings(), and GeneralUtility\makeInstance().
Referenced by SearchController\formAction(), and SearchController\searchAction().
|
protected |
simple function to initialize possible external parsers feeds the $this->externalParsers array
Definition at line 1367 of file SearchController.php.
References $GLOBALS, and GeneralUtility\getUserObj().
Referenced by SearchController\initialize().
injectTypoScriptService | ( | \TYPO3\CMS\Extbase\Service\TypoScriptService | $typoScriptService | ) |
\TYPO3\CMS\Extbase\Service\TypoScriptService | $typoScriptService |
Definition at line 147 of file SearchController.php.
References SearchController\$typoScriptService.
|
protected |
Links the $linkText to page $pageUid
int | $pageUid | Page id |
string | $linkText | Title String to link |
array | $row | Result row |
array | $markUpSwParams | Additional parameters for marking up seach words |
Definition at line 1242 of file SearchController.php.
References AbstractController\$uriBuilder, GeneralUtility\getIndpEnv(), SearchController\getPathFromPageId(), and GeneralUtility\implodeArrayForUrl().
Referenced by SearchController\compileSingleResultRow().
|
protected |
Load settings and apply stdWrap to them
Definition at line 1425 of file SearchController.php.
References $GLOBALS, and MathUtility\forceIntegerInRange().
Referenced by SearchController\initialize().
|
protected |
Returns the resume for the search-result.
array | $row | Search result row |
bool | $noMarkup | If noMarkup is FALSE, then the index_fulltext table is used to select the content of the page, split it with regex to display the search words in the text. |
int | $length | String length |
Definition at line 650 of file SearchController.php.
References $GLOBALS, SearchController\getDatabaseConnection(), SearchController\markupSWpartsOfString(), and LocalizationUtility\translate().
Referenced by SearchController\compileSingleResultRow().
|
protected |
Return the rating-HTML code for the result row. This makes use of the $this->firstRow
array | $row | Result row array |
Definition at line 534 of file SearchController.php.
References $GLOBALS, MathUtility\forceIntegerInRange(), and LocalizationUtility\translate().
Referenced by SearchController\compileSingleResultRow().
|
protected |
Marks up the search words from $this->searchWords in the $str with a color.
string | $str | Text in which to find and mark up search words. This text is assumed to be UTF-8 like the search words internally is. |
Definition at line 681 of file SearchController.php.
References $GLOBALS, elseif, MathUtility\forceIntegerInRange(), and GeneralUtility\makeInstance().
Referenced by SearchController\makeDescription().
|
protected |
Returns if an item type is a multipage item type
string | $item_type | Item type |
Definition at line 1406 of file SearchController.php.
Referenced by SearchController\compileSingleResultRow().
|
protected |
Post-process the search word array so it will match the words that was indexed (including case-folding if any) If any words are splitted into multiple words (eg. CJK will be!) the operator of the main word will remain.
array | $searchWords | Search word array |
Definition at line 851 of file SearchController.php.
References $GLOBALS, SearchController\$searchWords, and GeneralUtility\getUserObj().
Referenced by SearchController\getSearchWords().
|
protected |
removes blinding entries from the option list of a selector
array | $allOptions | associative array containing all options |
array | $blindOptions | associative array containing the optionkey as they key and the value = 1 if it should be removed |
Definition at line 1220 of file SearchController.php.
Referenced by SearchController\getAllAvailableGroupOptions(), SearchController\getAllAvailableIndexConfigurationsOptions(), SearchController\getAllAvailableLanguageOptions(), SearchController\getAllAvailableMediaTypesOptions(), SearchController\getAllAvailableNumberOfResultsOptions(), SearchController\getAllAvailableOperandsOptions(), SearchController\getAllAvailableSearchTypeOptions(), SearchController\getAllAvailableSectionsOptions(), SearchController\getAllAvailableSortDescendingOptions(), and SearchController\getAllAvailableSortOrderOptions().
searchAction | ( | $search = array() | ) |
Performs the search, the display and writing stats
array | $search | the search parameters, an associative array |
Definition at line 221 of file SearchController.php.
References $GLOBALS, SearchController\$searchData, elseif, SearchController\getDatabaseConnection(), SearchController\getDisplayResults(), SearchController\hookRequest(), SearchController\initialize(), GeneralUtility\intExplode(), GeneralUtility\milliseconds(), LocalizationUtility\translate(), and SearchController\writeSearchStat().
|
protected |
Write statistics information to database for the search operation
array | $searchParams | search params |
array | $searchWords | Search Word array |
int | $count | Number of hits |
int | $pt | Milliseconds the search took |
Definition at line 754 of file SearchController.php.
References $GLOBALS, SearchController\$searchWords, SearchController\getDatabaseConnection(), and GeneralUtility\getIndpEnv().
Referenced by SearchController\searchAction().
|
protected |
Definition at line 61 of file SearchController.php.
|
protected |
Definition at line 95 of file SearchController.php.
|
protected |
Definition at line 137 of file SearchController.php.
|
protected |
Definition at line 81 of file SearchController.php.
|
protected |
Definition at line 88 of file SearchController.php.
|
protected |
Definition at line 123 of file SearchController.php.
|
protected |
Definition at line 130 of file SearchController.php.
|
protected |
Definition at line 75 of file SearchController.php.
|
protected |
Definition at line 116 of file SearchController.php.
|
protected |
Definition at line 102 of file SearchController.php.
|
protected |
Definition at line 109 of file SearchController.php.
Referenced by SearchController\getDisplayResults().
|
protected |
Definition at line 45 of file SearchController.php.
Referenced by SearchController\formAction(), SearchController\initialize(), and SearchController\searchAction().
|
protected |
Definition at line 68 of file SearchController.php.
|
protected |
Definition at line 56 of file SearchController.php.
|
protected |
Definition at line 40 of file SearchController.php.
Referenced by SearchController\getDisplayResults(), SearchController\getSearchWords(), SearchController\procSearchWordsByLexer(), and SearchController\writeSearchStat().
|
protected |
Definition at line 35 of file SearchController.php.
Referenced by SearchController\initialize().
|
protected |
Definition at line 142 of file SearchController.php.
Referenced by SearchController\injectTypoScriptService().