/** * Constructor method * * @access public * @return void */ public function __construct() { \application\components\EventManager::attach($this); }
/** * Constructor Method * * @access public * @return void */ public function __construct($scenario = '') { parent::__construct($scenario); \application\components\EventManager::attach($this); }
<?php \application\components\EventManager::registerBehaviour('\\application\\components\\UserIdentity', new \application\addons\extrasecurity\behaviours\MorePersistedStates()); return array('components' => array('user' => array('behaviors' => array('\\application\\addons\\extrasecurity\\behaviours\\CheckExtraParams'))));
/** * Constructor Method * * @access public * @return void */ public function __construct($username, $password) { parent::__construct($username, $password); \application\components\EventManager::attach($this); }
/** * Constructor Method * * @access public * @param string|array $config * @param CModel $model * @param CBaseController|CForm $parent * @return void */ public function __construct($config, $model = null, $parent = null) { parent::__construct($config, $model, $parent); \application\components\EventManager::attach($this); }
/** * Constructor Method * * @access public * @return void */ public function __construct($owner = null) { parent::__construct($owner); \application\components\EventManager::attach($this); }
/** * Constructor Method * * @access public * @reutrn void */ public function __construct($id, $module = null) { parent::__construct($id, $module); // Attach all registered event handlers and behaviours for the current controller. \application\components\EventManager::attach($this); }