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.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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()

validate ( )
protected
See also
Controller::validate()

Reimplemented from ListController.

Definition at line 80 of file SearchController.php.

◆ getObjects()

getObjects (   $type,
  $queryCondition,
  $sortArray,
  $pagingInfo 
)
protected
See also
ListController::getObjects()

Reimplemented from ListController.

Definition at line 88 of file SearchController.php.

◆ modifyModel()

modifyModel ( $nodes)
protected
See also
ListController::modifyModel()

Reimplemented from ListController.

Definition at line 114 of file SearchController.php.