Exemplo 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;
         }
     }
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     static::$app =& $this;
 }