Beispiel #1
0
 public function init()
 {
     parent::init();
     if (!isset($this->options['id'])) {
         $this->options['id'] = $this->getId();
     }
 }
Beispiel #2
0
 public function init()
 {
     parent::init();
     if ($this->id) {
         $this->_gallery = \common\models\Gallery::findOne($this->id);
     } else {
         throw new InvalidConfigException(\Yii::t('front', 'No required parameter given') . ' - id');
     }
     if (!$this->type) {
         throw new InvalidConfigException(\Yii::t('front', 'No required parameter given') . ' - type');
     }
 }
Beispiel #3
0
 /**
  * Initializes the widget
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
 }
Beispiel #4
0
 public function init()
 {
     parent::init();
     ob_start();
 }