本文整理匯總了PHP中Zend_Form_Element_Text::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Form_Element_Text::init方法的具體用法?PHP Zend_Form_Element_Text::init怎麽用?PHP Zend_Form_Element_Text::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Form_Element_Text
的用法示例。
在下文中一共展示了Zend_Form_Element_Text::init方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init
/**
* Initializes filters and validators for this element.
*/
public function init()
{
parent::init();
$this->addFilter('StringTrim');
$this->_urlValidator = new Mol_Validate_Url();
$this->addValidator($this->_urlValidator, true);
}
示例2: init
/**
* (non-PHPdoc)
* @see library/Zend/Form/Zend_Form_Element#init()
*/
public function init()
{
parent::init();
// call the CrFramework form element common init function
// refer to CrFramework_Form_Element_ElementCommon.php
CrFramework_Form_Element_ElementCommon::init($this, $this->_cssClass);
}
示例3: init
public function init()
{
parent::init();
$v = new Zend_Validate_StringLength(array('min' => 2, 'max' => 10));
$this->addValidator($v);
$this->setAttribs(array('class' => 'multi', 'data-basename' => 'empresa'));
$this->setRequired();
}
示例4: init
/**
* Initializes the filters and validators for this element.
*/
public function init()
{
parent::init();
$this->addFilter('StringTrim');
$this->addValidator('EmailAddress', true);
$this->_hostnameValidator = new Mol_Validate_Suffix();
$this->addValidator($this->_hostnameValidator, true);
}
示例5: init
public function init()
{
// $this->addValidator('EmailAddress')
// ->addFilter('StringToLower');
return parent::init();
}
示例6: init
/**
* Initialisiert das Formularelement.
*
* Fügt PrefixPath für angepasste OPUS Dekoratoren hinzu.
*/
public function init()
{
parent::init();
$this->addPrefixPath('Form_Decorator', 'Form/Decorator', Zend_Form::DECORATOR);
}