Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

(no description)

File Size: 117 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

HTML_QuickForm_password:: (2 methods):
  __construct()
  HTML_QuickForm_password()

name:: (3 methods):
  setSize()
  setMaxlength()
  getFrozenHtml()


Class: HTML_QuickForm_password  - X-Ref

HTML class for a password type field

__construct($elementName=null, $elementLabel=null, $attributes=null)   X-Ref
Class constructor

param: string    $elementName    (optional)Input field name attribute
param: string    $elementLabel   (optional)Input field label
param: mixed     $attributes     (optional)Either a typical HTML attribute string
return: void

HTML_QuickForm_password($elementName=null, $elementLabel=null, $attributes=null)   X-Ref
Old syntax of class constructor. Deprecated in PHP7.


Class: name  - X-Ref

setSize($size)   X-Ref
Sets size of password element

param: string    $size  Size of password field
return: void

setMaxlength($maxlength)   X-Ref
Sets maxlength of password element

param: string    $maxlength  Maximum length of password field
return: void

getFrozenHtml()   X-Ref
Returns the value of field without HTML tags (in this case, value is changed to a mask)

return: string