Component Class Reference

Inheritance diagram for Component:

Object

List of all members.


Public Member Functions

 _loadComponents (&$object, $parent=null)
 beforeRedirect (&$controller, $url, $status=null, $exit=true)
 beforeRender (&$controller)
 init (&$controller)
 initialize (&$controller)
 shutdown (&$controller)
 startup (&$controller)

Detailed Description

Definition at line 32 of file component.php.


Member Function Documentation

Component::_loadComponents ( &$  object,
parent = null 
)

Load components used by this component.

Parameters:
object $object Object with a Components array
object $parent the parent of the current object
Returns:
void protected

Definition at line 160 of file component.php.

References $config, Object::cakeError(), App::import(), Set::normalize(), and Inflector::underscore().

Referenced by init().

Component::beforeRedirect ( &$  controller,
url,
status = null,
exit = true 
)

Called before Controller::redirect();

Parameters:
object $controller Controller with components to beforeRedirect public

Definition at line 124 of file component.php.

References $url.

Component::beforeRender ( &$  controller  ) 

Called after the Controller::beforeRender(), after the view class is loaded, and before the Controller::render()

Parameters:
object $controller Controller with components to beforeRender public

Definition at line 110 of file component.php.

Component::init ( &$  controller  ) 

Used to initialize the components for current controller

Parameters:
object $controller Controller with components to load public

Definition at line 60 of file component.php.

References _loadComponents().

Component::initialize ( &$  controller  ) 

Called before the Controller::beforeFilter()

Parameters:
object $controller Controller with components to initialize public

Definition at line 78 of file component.php.

Component::shutdown ( &$  controller  ) 

Called after Controller::render() and before the output is printed to the browser

Parameters:
object $controller Controller with components to shutdown public

Definition at line 144 of file component.php.

Component::startup ( &$  controller  ) 

Called after the Controller::beforeFilter() and before the controller action

Parameters:
object $controller Controller with components to startup public

Definition at line 96 of file component.php.


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