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