Example #1
0
 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);
 }
Example #2
0
 /**
  * @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());
 }
Example #3
0
 /**
  * @see Zend\Form\Element::__construct()
  */
 public function __construct($name = null, $options = [])
 {
     parent::__construct($name, $options);
     $this->attributes['type'] = 'fieldset';
 }