public function __construct($options = null) { if (isset($options['class'])) { $options['class'] .= ' login-form'; } else { $options['class'] = 'login-form'; } parent::__construct($options); }
/** * Returns/sets a login name element. * * @return \Zend_Form_Element_Text */ public function getUserNameElement() { $element = $this->getElement($this->usernameFieldName); if (!$element) { $element = parent::getUserNameElement(); $element->addValidator(new \Gems_User_Validate_ResetRequestValidator($this, $this->translate)); } return $element; }