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'); }
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)); }
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'); }
public function __construct($strName = null, $strValue = null, $arrOption = array()) { parent::__construct($strName, $arrOption); if (!empty($strValue)) { $this->setValue($strValue); } }
/** * 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); }
/** * 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); }
/** * @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); }
/** * @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); }
/** * 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); }