Пример #1
0
 /**
  * Constructor method
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     \application\components\EventManager::attach($this);
 }
Пример #2
0
 /**
  * Constructor Method
  *
  * @access public
  * @return void
  */
 public function __construct($scenario = '')
 {
     parent::__construct($scenario);
     \application\components\EventManager::attach($this);
 }
Пример #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'))));
Пример #4
0
 /**
  * Constructor Method
  *
  * @access public
  * @return void
  */
 public function __construct($username, $password)
 {
     parent::__construct($username, $password);
     \application\components\EventManager::attach($this);
 }
Пример #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);
 }
Пример #6
0
 /**
  * Constructor Method
  *
  * @access public
  * @return void
  */
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     \application\components\EventManager::attach($this);
 }
Пример #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);
 }