ZMObject
└─ZMController
└─ZMSearchController
public class ZMSearchController
extends ZMController
| Method Summary | |
|---|---|
| void | __construct(string requestId) Create new instance. |
| boolean | 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 | |
public void __construct(string requestId)
Create new instance.
null to use the request id.public boolean isAutoSearch()
Get the auto search setting.
public boolean isFormSubmit(ZMRequest request)
Check if this request is a form submit.
This default implementation will return true for all POST requests.
true if this is a form submit request.public ZMView processGet(ZMRequest request)
Process a HTTP GET request.
ZMView that handles presentation or null if the controller generates the contents itself.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.
Search controller.
The default for autoSearch is
true.