ZenMagick 0.9.10


zenmagick.store.sf.mvc.controller\ZMProductReviewsWriteController
mvc\controller\ZMProductReviewsWriteController.php at line 33

Class ZMProductReviewsWriteController

ZMObject
└─ZMController
└─ZMProductReviewsWriteController

public class ZMProductReviewsWriteController
extends ZMController

Request controller for write review page.

Author:
DerManoMann

Method Summary
void

__construct(string requestId)

Create new instance.

protected ZMProduct

getProduct(ZMRequest request)

Get the product.

array

getViewData(ZMRequest request)

{@inheritDoc}

void

preProcess(ZMRequest request)

{@inheritDoc}

ZMView

processGet(ZMRequest request)

{@inheritDoc}

ZMView

processPost(ZMRequest request)

{@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

Method Detail

mvc\controller\ZMProductReviewsWriteController.php at line 38

__construct

public void __construct(string requestId)

Create new instance.

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

mvc\controller\ZMProductReviewsWriteController.php at line 114

getProduct

protected ZMProduct getProduct(ZMRequest request)

Get the product.

Parameters:
request - The current request.
Returns:
The product or null.

mvc\controller\ZMProductReviewsWriteController.php at line 53

getViewData

public array getViewData(ZMRequest request)

Get general page data.

Good to override if a custom controller needs to provide some data for both GET and POST requests.

Parameters:
request - The current request.
Returns:
Some data map.

mvc\controller\ZMProductReviewsWriteController.php at line 61

preProcess

public void preProcess(ZMRequest request)

Convenience method for request processing shared by request methods.

Despite the name this is called as part of the controllers process($request) method. That ensures that all processing is within the boundaries of a single transaction (if enabled).

Parameters:
request - The request to process.

mvc\controller\ZMProductReviewsWriteController.php at line 72

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\ZMProductReviewsWriteController.php at line 82

processPost

public ZMView processPost(ZMRequest request)

Process a HTTP POST request.

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

ZenMagick 0.9.10