public function raiseEvent($name, $event) { if ($event == null) { $event = new CEvent(); } $this->initExtension(self::CATEGORY_BACKEND_WINDOW); // регистрация всех расширений на категорию событий parent::raiseEvent($name, $event); }
public function beforeControllerAction($controller, $action) { if (parent::beforeControllerAction($controller, $action)) { // this method is called before any module controller action is performed // you may place customized code here return true; } else { return false; } }
public function init() { parent::init(); $this->setImport(array($this->getId() . '.controllers.*')); }