ZMObject
└─ZMController
└─ZMCatalogContentController
public abstract class ZMCatalogContentController
extends ZMController
| Constant Summary | |
|---|---|
| final static int | |
| final static int | |
| Field Summary | |
|---|---|
| protected mixed | |
| protected mixed | |
| Method Summary | |
|---|---|
| void | __construct(mixed catalogRequestId, string name, int active, string requestId) Create new instance. |
| ZMView | findView(string id, array data, array parameter) Lookup the appropriate view for the given name. Adds special handling to 'catalog-redirect' == $id to allow proper redirects after POST handling without the subclass having to worry about details. All other parameters will be handled as always. |
| string | Query the (catalog) request id this controller handles. |
| string | getName() Get the name. |
| boolean | Query whether this content is active for the given request. |
| ZMView | {@inheritDoc} |
| 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 final static int ACTIVE_CATEGORY = 1
public final static int ACTIVE_PRODUCT = 2
protected mixed $catalogRequestId_
protected mixed $name_
public void __construct(mixed catalogRequestId, string name, int active, string requestId)
Create new instance.
ACTIVE_CATEGORY|ACTIVE_PRODUCT; default is 0.public ZMView findView(string id, array data, array parameter)
Lookup the appropriate view for the given name.
Adds special handling to 'catalog-redirect' == $id to allow proper redirects after POST handling without
the subclass having to worry about details.
All other parameters will be handled as always.
null to return to the current page.null.public string getCatalogRequestId()
Query the (catalog) request id this controller handles.
public string getName()
Get the name.
public boolean isActive(ZMRequest request)
Query whether this content is active for the given request.
Subclasses can control this by either setting the active (bit-)flags in the constructor or by overriding this method.
true if the plugin requests to be rendered for this request.public ZMView process(ZMRequest request)
Process a HTTP request.
Supported request methods are GET and POST.
This method should not be overridded!.
ZMView instance or null.
Catalog content controller.
This class implements a special case
findView()method to allow easy redirects to the same page.