Exemplo n.º 1
0
 public function raiseEvent($name, $event)
 {
     if ($event == null) {
         $event = new CEvent();
     }
     $this->initExtension(self::CATEGORY_BACKEND_WINDOW);
     // регистрация всех расширений на категорию событий
     parent::raiseEvent($name, $event);
 }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
 public function init()
 {
     parent::init();
     $this->setImport(array($this->getId() . '.controllers.*'));
 }