Beispiel #1
0
 public function __construct($name = null, $options = [])
 {
     parent::__construct($name, $options);
     $this->setAttribute('type', 'text');
     $this->setAttribute('pattern', self::CURRENCY_FORMAT);
     $this->setAttribute('data-mask', '$000.00');
 }
Beispiel #2
0
 public function __construct($name = null, $options = array())
 {
     parent::__construct($name, $options);
     $this->startDateElement = new Date('startdate');
     $this->endDateElement = new Date('enddate');
     $this->currentCheckbox = new Checkbox('current', array('label' => 'Current', 'use_hidden_element' => true, 'value' => 0));
 }
Beispiel #3
0
 public function __construct($name = null, $options = [])
 {
     parent::__construct($name, $options);
     $this->setAttribute('type', 'tel');
     $this->setAttribute('pattern', self::PHONE_FORMAT);
     $this->setAttribute('data-mask', '(000) 000-0000');
 }
Beispiel #4
0
 public function __construct($strName = null, $strValue = null, $arrOption = array())
 {
     parent::__construct($strName, $arrOption);
     if (!empty($strValue)) {
         $this->setValue($strValue);
     }
 }
Beispiel #5
0
 /**
  * Constructor. Add two selects elements
  *
  * @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())
 {
     $this->minYear = date('Y') - 100;
     $this->maxYear = date('Y');
     $this->monthElement = new Select('month');
     $this->yearElement = new Select('year');
     parent::__construct($name, $options);
 }
Beispiel #6
0
 /**
  * Constructor
  *
  * @todo Should we set dojo view helper paths here?
  * @param  mixed $spec
  * @param  mixed $options
  * @return void
  */
 public function __construct($spec, $options = null)
 {
     $this->addPrefixPath('Zend\\Dojo\\Form\\Decorator', 'Zend/Dojo/Form/Decorator', 'decorator');
     parent::__construct($spec, $options);
 }
Beispiel #7
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())
 {
     $this->iterator = new PriorityQueue();
     parent::__construct($name, $options);
 }
Beispiel #8
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())
 {
     $this->iterator = new PriorityList();
     $this->iterator->isLIFO(false);
     parent::__construct($name, $options);
 }
Beispiel #9
0
 /**
  * Constructor
  *
  * @param null|string|int $name Optional name for the element
  */
 public function __construct($name = null)
 {
     $this->iterator = new PriorityQueue();
     parent::__construct($name);
 }
 public function __construct($secret)
 {
     parent::__construct();
     $this->secret = $secret;
 }
 /**
  * @param string $name
  */
 public function __construct($name = null)
 {
     parent::__construct($name);
 }