public function __construct($name = null, $options = array()) { $defaults = array('count' => 0); $options = array_merge($defaults, $options); $this->setAttribute('class', 'template'); parent::__construct($name, $options); $this->setShouldCreateTemplate(true); }
/** * @param null|int|string $name Optional name for the element * @param array $options Optional options for the element */ public function __construct($name = null, $options = array()) { parent::__construct($name, $options); $this->setHydrator(new Traversable()); }
/** * @see Zend\Form\Element::__construct() */ public function __construct($name = null, $options = []) { parent::__construct($name, $options); $this->attributes['type'] = 'fieldset'; }