Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function val($value = null)
 {
     if ($value === null) {
         return parent::val();
     }
     $this->children = [];
     if ($value) {
         foreach ($value as $key => $value) {
             $child = isset($this->children[$key]) ? $this->children[$key] : $this->createChild($key);
             $child->val($value);
         }
     }
     return $this;
 }
Пример #2
0
 public function __construct(Builder $builder, array $children = null)
 {
     parent::__construct($children);
     $this->set('list', false);
     $this->class('format is-responsive is-group is-large');
 }