Example #1
0
 public function build($model)
 {
     $ret = parent::build($model);
     if ($this->in) {
         $ret['in'] = $this->in;
     }
     return $ret;
 }
Example #2
0
 /**
  * @copydoc Control::build
  */
 public function build()
 {
     $this->setAttribute('state', (int) $this->state);
     return parent::build();
 }