Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->fields) {
         foreach ($this->fields as $key => $value) {
             if (isset($this->{$key})) {
                 $value = $this->{$key};
             }
             $this->{$key} = $value;
         }
     }
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     static::$app =& $this;
 }