SearchController Class Reference
Detailed Description
SearchController executes a search and returns matching objects in a paged list.
Internally it uses Zend Lucene indexed search.
The controller supports the following actions:
Action default
Search.
Parameter | Description |
---|---|
in / out query | The query string |
Response Actions | |
ok | In all cases |
For additional actions and parameters see ListController actions.
Definition at line 48 of file SearchController.php.
Inheritance diagram for SearchController:
Public Member Functions | |
__construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration, Search $search) | |
Public Member Functions inherited from Controller | |
__construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration) | |
initialize (Request $request, Response $response) | |
execute ($method=null) | |
getRequest () | |
getResponse () | |
Protected Member Functions | |
validate () | |
getObjects ($type, $queryCondition, $sortArray, $pagingInfo) | |
modifyModel (&$nodes) | |
Protected Member Functions inherited from ListController | |
doExecute ($method=null) | |
Protected Member Functions inherited from Controller | |
executeSubAction ($action) | |
redirect ($location, $key=null, $data=null) | |
getLogger () | |
getSession () | |
getPersistenceFacade () | |
getPermissionManager () | |
getActionMapper () | |
getLocalization () | |
getMessage () | |
getConfiguration () | |
requireTransaction () | |
endTransaction ($commit) | |
isLocalizedRequest () | |
checkLanguageParameter () | |
generateCsrfToken ($name, $refresh=true) | |
validateCsrfToken ($name, $invalidate=true) | |
getLocalSessionValue ($key, $default=null) | |
setLocalSessionValue ($key, $value) | |
clearLocalSessionValues () | |
Additional Inherited Members | |
Public Attributes inherited from Controller | |
const | CSRF_TOKEN_PARAM = 'csrf_token' |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | Session | $session, |
PersistenceFacade | $persistenceFacade, | ||
PermissionManager | $permissionManager, | ||
ActionMapper | $actionMapper, | ||
Localization | $localization, | ||
Message | $message, | ||
Configuration | $configuration, | ||
Search | $search | ||
) |
Constructor.
- Parameters
-
$session $persistenceFacade $permissionManager $actionMapper $localization $message $configuration $search
Definition at line 64 of file SearchController.php.
Member Function Documentation
◆ validate()
|
protected |
- See also
- Controller::validate()
Reimplemented from ListController.
Definition at line 80 of file SearchController.php.
◆ getObjects()
|
protected |
- See also
- ListController::getObjects()
Reimplemented from ListController.
Definition at line 88 of file SearchController.php.
◆ modifyModel()
|
protected |
- See also
- ListController::modifyModel()
Reimplemented from ListController.
Definition at line 114 of file SearchController.php.