ZenMagick 0.9.10


zenmagick.store.sf.mvc.controller\ZMCreateAccountController
mvc\controller\ZMCreateAccountController.php at line 41

Class ZMCreateAccountController

ZMObject
└─ZMController
└─ZMCreateAccountController

public class ZMCreateAccountController
extends ZMController

Request controller for account creation page.

The createDefaultAddress property can be used to control whether or not to create a default address entry in the address book. Obviously, the validation rules for the registration form need to be adjusted accordingly.

The property may be set by specifying a controllerDefinition value in the URL mapping like this:

ZMUrlManager::instance()->setMapping('create_account', array('controller' => 'CreateAccountController#createDefaultAddress=false'), false);

Author:
DerManoMann

Method Summary
void

__construct(string requestId)

Create new instance.

void

preProcess(ZMRequest request)

{@inheritDoc}

ZMView

processPost(ZMRequest request)

{@inheritDoc}

void

setCreateDefaultAddress(boolean value)

Set create default address 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\ZMCreateAccountController.php at line 48

__construct

public void __construct(string requestId)

Create new instance.

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

mvc\controller\ZMCreateAccountController.php at line 74

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\ZMCreateAccountController.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.

mvc\controller\ZMCreateAccountController.php at line 65

setCreateDefaultAddress

public void setCreateDefaultAddress(boolean value)

Set create default address flag.

Parameters:
value - The new value.

ZenMagick 0.9.10