Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
MoodleQuickForm_password Class Reference

Password type form element. More...

Inheritance diagram for MoodleQuickForm_password:
MoodleQuickForm_passwordunmask

Public Member Functions

 __construct ($elementName=null, $elementLabel=null, $attributes=null)
 constructor
 
 getHelpButton ()
 get html for help button
 
 MoodleQuickForm_password ($elementName=null, $elementLabel=null, $attributes=null)
 Old syntax of class constructor.
 
 setHiddenLabel ($hiddenLabel)
 Sets label to be hidden.
 

Public Attributes

 $_helpbutton =''
 
 string
 html for help button, if empty then no help
 

Protected Attributes

bool $_hiddenLabel = false
 if true label will be hidden.
 

Detailed Description

Password type form element.

HTML class for a password type element

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

MoodleQuickForm_password::__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 in MoodleQuickForm_passwordunmask.

Member Function Documentation

◆ getHelpButton()

MoodleQuickForm_password::getHelpButton ( )

get html for help button

Return values
stringhtml for help button

◆ MoodleQuickForm_password()

MoodleQuickForm_password::MoodleQuickForm_password ( $elementName = null,
$elementLabel = null,
$attributes = null )

Old syntax of class constructor.

Deprecated in PHP7.

Deprecated
since Moodle 3.1

◆ setHiddenLabel()

MoodleQuickForm_password::setHiddenLabel ( $hiddenLabel)

Sets label to be hidden.

Parameters
bool$hiddenLabelsets if label should be hidden

The documentation for this class was generated from the following file: