ZenMagick 0.9.8


org.zenmagick.store.mvc.controller.ZMCreateAccountController
\store\mvc\controller\ZMCreateAccountController.php at line 42

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
Version:
$Id: ZMCreateAccountController.php 2711 2009-12-11 03:27:54Z dermanomann $

Constructor Summary

ZMCreateAccountController()

Create new instance.

Method Summary
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
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\ZMCreateAccountController.php at line 49

ZMCreateAccountController

public ZMCreateAccountController()

Create new instance.


Method Detail

\store\mvc\controller\ZMCreateAccountController.php at line 75

preProcess

public void preProcess(ZMRequest request)

Parameters:
request - The request to process.

\store\mvc\controller\ZMCreateAccountController.php at line 83

processPost

public ZMView processPost(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\ZMCreateAccountController.php at line 66

setCreateDefaultAddress

public void setCreateDefaultAddress(boolean value)

Set create default address flag.

Parameters:
value - The new value.

ZenMagick 0.9.8