Definition at line 892 of file validation.inc.
◆ PasswordValidator()
PasswordValidator::PasswordValidator |
( |
|
$field, |
|
|
|
$title, |
|
|
|
$form_id = "" , |
|
|
|
$empty = "" |
|
) |
| |
◆ validate()
PasswordValidator::validate |
( |
| ) |
|
Reimplemented from RequiredValidator.
Definition at line 924 of file validation.inc.
928 if ($this->readOnly)
return "";
930 $reset = $_POST[
"{$this->form_id}_reset_password"];
932 if ($reset == 1 AND (!isset($_POST[$this->field]) || $_POST[$this->field] === $this->empty))
934 return "{$this->title} is a required field.";
◆ writeClient()
PasswordValidator::writeClient |
( |
| ) |
|
Reimplemented from RequiredValidator.
Definition at line 904 of file validation.inc.
906 if ($this->readOnly)
return "";
908 $pswField =
"{$this->form_id}_{$this->field}_block";
909 $script = <<<ENDSCRIPT
911 var block = document.getElementById(
"$pswField");
913 if (block.style.display !=
"none" && form[
"{$this->field}"].value ==
"{$this->empty}")
915 alert(
"{$this->title} is a required field. Please supply a value.");
◆ $empty
PasswordValidator::$empty = "" |
◆ $form_id
PasswordValidator::$form_id |
The documentation for this class was generated from the following file: