Ejemplo n.º 1
0
 public function init()
 {
     if (!$this->userId) {
         throw new CException(Yii::t('BlogModule.blog', 'userId is not defined'));
     }
     parent::init();
 }
Ejemplo n.º 2
0
 public function init()
 {
     if (!$this->topic) {
         throw new CException('Error "MessageFormWidget::topic" is not set!');
     }
     parent::init();
 }
Ejemplo n.º 3
0
 public function init()
 {
     if (!$this->userId) {
         throw new CException('Error "UserCommentsWidget::userId" is not set!');
     }
     parent::init();
 }
Ejemplo n.º 4
0
 public function init()
 {
     parent::init();
     if (!$this->pageStatus) {
         $this->pageStatus = Page::STATUS_PUBLISHED;
     }
     $this->parent_id = (int) $this->parent_id;
 }