コード例 #1
0
ファイル: Template.php プロジェクト: rb-cohen/jzform
 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);
 }
コード例 #2
0
ファイル: Collection.php プロジェクト: gridguyz/zork
 /**
  * @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());
 }
コード例 #3
0
ファイル: Collection.php プロジェクト: advertikon/advertikon
 /**
  * @see Zend\Form\Element::__construct()
  */
 public function __construct($name = null, $options = [])
 {
     parent::__construct($name, $options);
     $this->attributes['type'] = 'fieldset';
 }