ZenMagick 0.9.8


org.zenmagick.store.mvc.controller.ZMSearchController
\store\mvc\controller\ZMSearchController.php at line 36

Class ZMSearchController

ZMObject
└─ZMController
└─ZMSearchController

public class ZMSearchController
extends ZMController

Search controller.

The default for autoSearch is true.

Author:
DerManoMann
Version:
$Id: ZMSearchController.php 2711 2009-12-11 03:27:54Z dermanomann $

Constructor Summary

ZMSearchController()

Create new instance.

Method Summary
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
findView, getFormData, getId, getView, isFormSubmit, preProcess, process, processGet, processPost, setContentType, setId, setView, validate, validateFormData, validateSession
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\mvc\controller\ZMSearchController.php at line 42

ZMSearchController

public ZMSearchController()

Create new instance.


Method Detail

\store\mvc\controller\ZMSearchController.php at line 72

isAutoSearch

public boolean isAutoSearch()

Get the auto search setting.

Returns:
The auto search flag.

\store\mvc\controller\ZMSearchController.php at line 79

isFormSubmit

public boolean isFormSubmit(ZMRequest request)

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

\store\mvc\controller\ZMSearchController.php at line 86

processGet

public ZMView processGet(ZMRequest request)

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

\store\mvc\controller\ZMSearchController.php at line 63

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.8