本文整理汇总了PHP中Zend_Form_Element_Password::setIgnore方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element_Password::setIgnore方法的具体用法?PHP Zend_Form_Element_Password::setIgnore怎么用?PHP Zend_Form_Element_Password::setIgnore使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Form_Element_Password
的用法示例。
在下文中一共展示了Zend_Form_Element_Password::setIgnore方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: editUserPassword
function editUserPassword()
{
$this->setMethod('post');
$this->addAttribs(array('id' => 'formAccountEditPassword', 'class' => ''));
$filters = array(new Zend_Filter_StringTrim(), new Zend_Filter_StripTags());
$control = new Zend_Form_Element_Hidden('control');
$control->setValue('editPassword');
$this->addElement($control);
$oldPassword = new Zend_Form_Element_Password('oldPassword');
$oldPassword->setLabel('Old password');
$oldPassword->addValidator(new Zend_Validate_StringLength(6, 32));
$oldPassword->setAttribs(array('class' => 'text validate[required,minSize[6],maxSize[32]] rightAdd', 'minlenght' => '6', 'maxlenght' => '32', 'autocomplete' => 'off', 'oncontextmenu' => 'return false', 'data-prompt-position' => 'topLeft:0'));
$oldPassword->setRequired(true);
$this->addElement($oldPassword);
$password = new Zend_Form_Element_Password('password');
$password->setLabel(Zend_Registry::get('translate')->_('admin_administrators_new_password'));
$password->addValidator(new Zend_Validate_StringLength(6, 32));
$password->setAttribs(array('class' => 'text validate[required] rightAdd', 'maxlenght' => '32', 'autocomplete' => 'off', 'oncontextmenu' => 'return false', 'ondrop' => 'return false', 'onpaste' => 'return false'));
$password->setRequired(true);
$this->addElement($password);
$retypePassword = new Zend_Form_Element_Password('retypePassword');
$retypePassword->setLabel(Zend_Registry::get('translate')->_('admin_administrators_retype_new_password'));
$retypePassword->addValidator(new Zend_Validate_Identical('password'));
$retypePassword->addValidator(new Zend_Validate_StringLength(6, 32));
$retypePassword->setAttribs(array('class' => 'text validate[required] rightAdd', 'maxlenght' => '32', 'autocomplete' => 'off', 'oncontextmenu' => 'return false', 'ondrop' => 'return false', 'onpaste' => 'return false'));
$retypePassword->setRequired(true);
$retypePassword->setIgnore(true);
$this->addElement($retypePassword);
$submit = new Zend_Form_Element_Submit('savePassword');
$submit->setValue(Zend_Registry::get('translate')->_('apply_password'));
$submit->setAttribs(array('class' => 'submit tsSubmitLogin fL'));
$submit->setIgnore(true);
$this->addElement($submit);
$this->setElementFilters($filters);
}