Example #1
0
 /**
  * Make child element with base element spec
  * @param  mixed $value value for the element
  * @return Element
  */
 public function makeElement($value)
 {
     $element = new Element("{$this->name}[]", $this->type, $this->attributes);
     $element->setValue($value);
     if ($this->meta) {
         $element->setMetas($this->meta);
     }
     if ($this->fieldset) {
         $element->setFieldset($this->fieldset);
     }
     return $element;
 }