LAYOUT_PRIORITY
LAYOUT_PRIORITY
Basic Search
Usage:
public function execute() {
//do stuff before search will be excuted
switch(parent::execute()) {
case self::NO_REQUEST:
//no request submited
break;
case self::RESULTS_FOUND:
//results were found
break
case self::NO_RESULTS_FOUND:
//no results were found
break;
}
//do stuff after search
}
For preparing a record for the results use the _prepareContentRecord method or implement a concrete method for a fuman table with function syntax:
_prepareTableUniqueNameWithCamelCase
Example for table "page_editorial":
protected function _preparePageEditorial(Fuman_Template_Data $data) {
}
Return null if you want to hide the record in the results. All hidden records are stored in the $_skippedSearchItems array.
The search-results and the count will be set on responseData with Keys: searchResults, searchResultCount
$_responseData : \Fuman_Response_Data
$_parsedSearchItems : array<mixed,\Fuman_Template_Data>
$_skippedSearchItems : array<mixed,\Fuman_Template_Data>
prepareSitemap(\app_core_action_sitemap $sitemap, \Fuman_Navigation_Item $item = null)
\app_core_action_sitemap | $sitemap | |
\Fuman_Navigation_Item | $item |
getActionDescriptor() : \Fuman_Action_Descriptor|null
Gets action descriptor
_isProtectionHashValid(string $appName, string $actionName, \Fuman_Table $table, string $id) : boolean
Check protection hash
string | $appName | |
string | $actionName | |
\Fuman_Table | $table | |
string | $id |
_prepareContentRecord(\Fuman_Template_Data $data) : \Fuman_Template_Data|null
Prepare content record
\Fuman_Template_Data | $data |
_prepareSearchMeta(\Fuman_Db_RecordSetMeta $meta, \Fuman_Db_Parameters $params)
Prepare search where
\Fuman_Db_RecordSetMeta | $meta | |
\Fuman_Db_Parameters | $params |
_getSearchResults() : array<mixed,\Fuman_Template_Data>
Gets search results
_getSkippedSearchResults() : array<mixed,\Fuman_Template_Data>
Gets skipped search results
_createFunctionName(string $uniqueName) : string
Create function name for a given table unique name.
Example: Given $uniqueName: page_editorial_section Returned functionName: _preparePageEditorialSection
Function names are used to give the possibility to change search results for a specific table.
string | $uniqueName |