コード例 #1
0
ファイル: UserC.class.php プロジェクト: arieh/tree-forum
 public function executeBefore()
 {
     switch ($this->_action) {
         case 'new':
             $this->addJS('sha1', 'new-user');
             break;
     }
     parent::executeBefore();
 }
コード例 #2
0
ファイル: MessageC.class.php プロジェクト: arieh/tree-forum
 protected function executeBefore()
 {
     switch ($this->_action) {
         case 'view':
             $this->addTitle($this->_model->getTitle());
             $this->addCSS('view_message');
             break;
     }
     parent::executeBefore();
 }
コード例 #3
0
ファイル: ForumC.class.php プロジェクト: arieh/tree-forum
 protected function executeBefore()
 {
     $this->addTitle('Forum');
     switch ($this->_action) {
         case 'open':
             $this->addTitle($this->_model->getName());
             $this->addCSS('open_forum');
             break;
         case 'create':
             $this->addTitle('add');
             $this->addCSS('create_forum');
             $this->addJS('create_forum');
             break;
         case 'restrict':
         case 'close':
         case 'free':
             $this->_show_view = false;
             break;
     }
     parent::executeBefore();
 }