|
| $_helpbutton ='' |
|
| string |
| html for help button, if empty then no help
|
|
◆ __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 |
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
◆ MoodleQuickForm_passwordunmask()
MoodleQuickForm_passwordunmask::MoodleQuickForm_passwordunmask |
( |
|
$elementName = null , |
|
|
|
$elementLabel = null , |
|
|
|
$attributes = null |
|
) |
| |
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
◆ 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
-
array | $value | Submitted value. |
- Return values
-
string|null | Validation error message or null. |
The documentation for this class was generated from the following file: