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)

Public Attributes

 $__controllerVars = array('plugin' => null, 'name' => null, 'base' => null)
 $__settings = array()
 $_loaded = array()
 $_primary = array()

Detailed Description

Definition at line 31 of file component.php.


Member Function Documentation

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

Loads 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 178 of file component.php.

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

Referenced by init().

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

Called before Controller::redirect().

Parameters:
object $controller Controller with components to beforeRedirect
Returns:
void public

Definition at line 139 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
Returns:
void public

Definition at line 124 of file component.php.

Component::init ( &$  controller  ) 

Used to initialize the components for current controller.

Parameters:
object $controller Controller with components to load
Returns:
void public

Definition at line 68 of file component.php.

References _loadComponents(), and name().

Component::initialize ( &$  controller  ) 

Called before the Controller::beforeFilter().

Parameters:
object $controller Controller with components to initialize
Returns:
void public http://book.cakephp.org/view/65/MVC-Class-Access-Within-Components

Definition at line 87 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
Returns:
void public

Definition at line 162 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
Returns:
void public http://book.cakephp.org/view/65/MVC-Class-Access-Within-Components

Definition at line 108 of file component.php.


Member Data Documentation

Component::$__controllerVars = array('plugin' => null, 'name' => null, 'base' => null)

Definition at line 38 of file component.php.

Component::$__settings = array()

Definition at line 60 of file component.php.

Component::$_loaded = array()

Definition at line 45 of file component.php.

Component::$_primary = array()

Definition at line 53 of file component.php.


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 00:30:55 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7