ZenMagick 0.9.10


zenmagick.store.sf.mvc.controller\ZMSearchController
mvc\controller\ZMSearchController.php at line 35

Class ZMSearchController

ZMObject
└─ZMController
└─ZMSearchController

public class ZMSearchController
extends ZMController

Search controller.

The default for autoSearch is true.

Author:
DerManoMann

Method Summary
void

__construct(string requestId)

Create new instance.

boolean

isAutoSearch()

Get the auto search setting.

boolean

isFormSubmit(ZMRequest request)

{@inheritDoc}

ZMView

processGet(ZMRequest request)

{@inheritDoc}

void

setAutoSearch(boolean autoSearch)

Set the auto search flag.

Methods inherited from org.zenmagick.mvc.controller\ZMController
__construct, findView, getFormData, getId, getView, getViewData, isAjax, isFormSubmit, preProcess, process, processGet, processPost, setContentType, setId, setView, validate, validateFormData, validateSession
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

mvc\controller\ZMSearchController.php at line 41

__construct

public void __construct(string requestId)

Create new instance.

Parameters:
requestId - Optional requestId; default is null to use the request id.

mvc\controller\ZMSearchController.php at line 71

isAutoSearch

public boolean isAutoSearch()

Get the auto search setting.

Returns:
The auto search flag.

mvc\controller\ZMSearchController.php at line 78

isFormSubmit

public boolean isFormSubmit(ZMRequest request)

Check if this request is a form submit.

This default implementation will return true for all POST requests.

Parameters:
request - The request to process.
Returns:
true if this is a form submit request.

mvc\controller\ZMSearchController.php at line 85

processGet

public ZMView processGet(ZMRequest request)

Process a HTTP GET request.

Parameters:
request - The request to process.
Returns:
A ZMView that handles presentation or null if the controller generates the contents itself.

mvc\controller\ZMSearchController.php at line 62

setAutoSearch

public void setAutoSearch(boolean autoSearch)

Set the auto search flag.

If enabled, the controller will automatically run a search even if only the keyword is set. This allows to create simple URLs that run a search.

Parameters:
autoSearch - The new value.

ZenMagick 0.9.10