本文整理汇总了PHP中Zend\Form\Element::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Element::__construct方法的具体用法?PHP Element::__construct怎么用?PHP Element::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend\Form\Element
的用法示例。
在下文中一共展示了Element::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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');
}
示例2: __construct
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));
}
示例3: __construct
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');
}
示例4: __construct
public function __construct($strName = null, $strValue = null, $arrOption = array())
{
parent::__construct($strName, $arrOption);
if (!empty($strValue)) {
$this->setValue($strValue);
}
}
示例5: __construct
/**
* 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);
}
示例6: __construct
/**
* 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);
}
示例7: __construct
/**
* @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);
}
示例8: __construct
/**
* @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);
}
示例9: __construct
/**
* Constructor
*
* @param null|string|int $name Optional name for the element
*/
public function __construct($name = null)
{
$this->iterator = new PriorityQueue();
parent::__construct($name);
}
示例10: __construct
public function __construct($secret)
{
parent::__construct();
$this->secret = $secret;
}
示例11: __construct
/**
* @param string $name
*/
public function __construct($name = null)
{
parent::__construct($name);
}