Ejemplo n.º 1
0
 /**
  * Constructor method
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     \application\components\EventManager::attach($this);
 }
Ejemplo n.º 2
0
 /**
  * Constructor Method
  *
  * @access public
  * @return void
  */
 public function __construct($scenario = '')
 {
     parent::__construct($scenario);
     \application\components\EventManager::attach($this);
 }
Ejemplo n.º 3
0
<?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'))));
Ejemplo n.º 4
0
 /**
  * Constructor Method
  *
  * @access public
  * @return void
  */
 public function __construct($username, $password)
 {
     parent::__construct($username, $password);
     \application\components\EventManager::attach($this);
 }
Ejemplo n.º 5
0
 /**
  * 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);
 }
Ejemplo n.º 6
0
 /**
  * Constructor Method
  *
  * @access public
  * @return void
  */
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     \application\components\EventManager::attach($this);
 }
Ejemplo n.º 7
0
 /**
  * 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);
 }