Password type form element with unmask option.
More...
|
| $_helpbutton ='' |
|
| string |
| html for help button, if empty then no help
|
|
|
bool | $_hiddenLabel = false |
| if true label will be hidden.
|
|
Password type form element with unmask option.
HTML class for a password type element with unmask option
- Copyright
- 2009 Petr Skoda
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
MoodleQuickForm_passwordunmask::__construct |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null ) |
constructor
- Parameters
-
string | $elementName | (optional) name of the password element |
string | $elementLabel | (optional) label for password element |
mixed | $attributes | (optional) Either a typical HTML attribute string or an associative array |
Reimplemented from MoodleQuickForm_password.
◆ export_for_template()
MoodleQuickForm_passwordunmask::export_for_template |
( |
renderer_base | $output | ) |
|
Function to export the renderer data in a format that is suitable for a mustache template.
- Parameters
-
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
- Return values
-
Implements templatable.
◆ getHelpButton()
MoodleQuickForm_password::getHelpButton |
( |
| ) |
|
|
inherited |
get html for help button
- Return values
-
string | html for help button |
◆ MoodleQuickForm_password()
MoodleQuickForm_password::MoodleQuickForm_password |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null ) |
|
inherited |
◆ MoodleQuickForm_passwordunmask()
MoodleQuickForm_passwordunmask::MoodleQuickForm_passwordunmask |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null ) |
◆ setHiddenLabel()
MoodleQuickForm_password::setHiddenLabel |
( |
| $hiddenLabel | ) |
|
|
inherited |
Sets label to be hidden.
- Parameters
-
bool | $hiddenLabel | sets if label should be hidden |
◆ validateSubmitValue()
MoodleQuickForm_passwordunmask::validateSubmitValue |
( |
| $value | ) |
|
Check that there is no whitespace at the beginning and end of the password.
It turned out that wrapping whitespace can easily be pasted by accident when copying the text from elsewhere. Such a mistake is very hard to debug as the whitespace is not displayed.
- Parameters
-
string | $value | Submitted value. |
- Return values
-
string|null | Validation error message or null. |
The documentation for this class was generated from the following file:
- lib/form/passwordunmask.php