コード例 #1
0
 public function init()
 {
     if (!$this->userId) {
         throw new CException(Yii::t('BlogModule.blog', 'userId is not defined'));
     }
     parent::init();
 }
コード例 #2
0
ファイル: MessageFormWidget.php プロジェクト: porem/yupe-ext
 public function init()
 {
     if (!$this->topic) {
         throw new CException('Error "MessageFormWidget::topic" is not set!');
     }
     parent::init();
 }
コード例 #3
0
 public function init()
 {
     if (!$this->userId) {
         throw new CException('Error "UserCommentsWidget::userId" is not set!');
     }
     parent::init();
 }
コード例 #4
0
ファイル: PagesWidget.php プロジェクト: alextravin/yupe
 public function init()
 {
     parent::init();
     if (!$this->pageStatus) {
         $this->pageStatus = Page::STATUS_PUBLISHED;
     }
     $this->parent_id = (int) $this->parent_id;
 }