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

Public Member Functions

getInstance ()
 
processAction (&$request)
 
 reset ()
 

Public Attributes

 $_controllerDelegate = null
 
 $_lastControllers = array()
 

Detailed Description

ActionMapper is the central class in our implementation of the mvc pattern. It calls the different Controllers based on the referring Controller and the given action.

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.ActionMapper.php 1462 2014-02-04 23:52:27Z iherwig
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 39 of file class.ActionMapper.php.

Member Function Documentation

& ActionMapper::getInstance ( )

Returns an instance of the class.

Returns
A reference to the only instance of the Singleton object

Definition at line 48 of file class.ActionMapper.php.

Referenced by processAction(), and reset().

& ActionMapper::processAction ( $request)

Process an action depending on a given referrer. The ActionMapper will instantiate the required Controller class as configured in the iniFile and delegates the request to it.

Note
This method is static so that it can be used without an instance. (This is necessary to call it in onError() which cannot be a class method because php's set_error_handler() does not allow this).
Parameters
requestA reference to a Request instance
Returns
A reference to an Response instance or null on error.

Definition at line 65 of file class.ActionMapper.php.

References Log\debug(), Formatter\deserialize(), Log\error(), Message\get(), WCMFInifileParser\getInstance(), ObjectFactory\getInstance(), getInstance(), RightsManager\getInstance(), Log\isDebugEnabled(), Request\setResponseFormat(), WCMFException\throwEx(), and Log\warn().

Referenced by MultipleActionController\executeKernel().

+ Here is the call graph for this function:

ActionMapper::reset ( )

Reset the state of ActionMapper to initial. Especially clears the processed controller queue.

Definition at line 209 of file class.ActionMapper.php.

References getInstance().

+ Here is the call graph for this function:

Member Data Documentation

ActionMapper::$_controllerDelegate = null

Definition at line 41 of file class.ActionMapper.php.

ActionMapper::$_lastControllers = array()

Definition at line 42 of file class.ActionMapper.php.


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