wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
ControllerDelegate Class Reference

Public Member Functions

 postInitialize (&$controller)
 
 validate (&$controller)
 
 preExecute (&$controller)
 
 postExecute (&$controller, $result)
 
 assignAdditionalViewValues (&$controller)
 

Detailed Description

ControllerDelegate is used to define an interface to vary the behaviour of the Controller base class. The methods are called by the Controller base class on defined variation points and get the currently executed controller as parameter.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.ControllerDelegate.php 1462 2014-02-04 23:52:27Z iherwig
Note
: There is only one instance used for all controllers, which is passed to the controller instances on construction.

Users may implement special application requirements by subclassing ControllerDelegate and configuring its usage in the configuration section 'implementation', key 'ControllerDelegate'. If no ControllerDelegate is configured, none is used. e.g.

[implementation]
...
ControllerDelegate = MyControllerDelegate
...
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 44 of file class.ControllerDelegate.php.

Member Function Documentation

ControllerDelegate::postInitialize ( $controller)

This method is called after the base class initialize method.

See Also
Controller::initialize()
Parameters
controllerThe currently executed controller

Definition at line 51 of file class.ControllerDelegate.php.

References WCMFException\throwEx().

+ Here is the call graph for this function:

ControllerDelegate::validate ( $controller)

This method is called instead of the base class method.

See Also
Controller::validate()
Parameters
controllerThe currently executed controller
Returns
The validation result.

Definition at line 61 of file class.ControllerDelegate.php.

References WCMFException\throwEx().

+ Here is the call graph for this function:

ControllerDelegate::preExecute ( $controller)

This method is called after validation and before the base class execute method

See Also
Controller::execute()
Parameters
controllerThe currently executed controller

Definition at line 70 of file class.ControllerDelegate.php.

References WCMFException\throwEx().

+ Here is the call graph for this function:

ControllerDelegate::postExecute ( $controller,
  $result 
)

This method is called after the base class execute method.

See Also
Controller::execute()
Parameters
controllerA reference to the currently executed controller
resultThe result of Controller::executeKernel
Returns
The execution result.

Definition at line 81 of file class.ControllerDelegate.php.

References WCMFException\throwEx().

+ Here is the call graph for this function:

ControllerDelegate::assignAdditionalViewValues ( $controller)

Assign additional variables to the view. This method is called after the base class assignViewDefaults method.

Parameters
controllerThe currently executed controller

Definition at line 90 of file class.ControllerDelegate.php.

References WCMFException\throwEx().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: