/**
  * FormHandler::passField()
  *
  * Create a password field
  *
  * @param string $title The title of the field
  * @param string $name The name of the field
  * @param string $validator The validator which should be used to validate the value of the field
  * @param int $size The size of the field
  * @param int $maxlength allowed max input of the field
  * @param string $extra CSS, Javascript or other which are inserted into the HTML tag
  * @return \FormHandler\Field\Password
  * @author Teye Heimans
  * @deprecated Use \FormHandler\Field\Password::set() instead
  */
 public function passField($title, $name, $validator = null, $size = null, $maxlength = null, $extra = null)
 {
     $field = \FormHandler\Field\Password::set($this, $title, $name);
     return $field->setValidator(self::parseValidator($validator, $field))->setSize($size)->setMaxlength($maxlength)->setExtra($extra);
 }
Exemplo n.º 2
0
 public static function set(\FormHandler\FormHandler $form, $title, $name, $validator = null)
 {
     $field = parent::set($form, $title, $name);
     $field->setValidator(FormHandler::parseValidator($validator, $field));
     return $field;
 }