/** * This method creates a bank account owner name field. * The $fieldName is the name * of the input field. The $defaultAccountOwnerName can be used to set the * name of the customer. * * @param string $fieldName * @param string $defaultCardHolderName * @return Customweb_Form_IElement */ public static function getAccountOwnerNameElement($fieldName, $defaultAccountOwnerName = '', $errorMessage = null) { $control = new Customweb_Form_Control_TextInput($fieldName, $defaultAccountOwnerName); $control->addValidator(new Customweb_Form_Validator_NotEmpty($control, Customweb_I18n_Translation::__("You have to enter the name of the account owner."))); $control->setAutocomplete(false); $element = new Customweb_Form_Element(Customweb_I18n_Translation::__('Account owner name.'), $control, Customweb_I18n_Translation::__('Please enter here the name of the account owner.')); $element->setElementIntention(Customweb_Form_Intention_Factory::getAccountOwnerNameIntention())->setErrorMessage($errorMessage); return $element; }