Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
MoodleQuickForm_header Class Reference

Header form element. More...

Inheritance diagram for MoodleQuickForm_header:

Public Member Functions

 __construct ($elementName=null, $text=null)
 constructor
 
 accept (&$renderer, $required=false, $error=null)
 Accepts a renderer.
 
 getHelpButton ()
 get html for help button
 
 MoodleQuickForm_header ($elementName=null, $text=null)
 Old syntax of class constructor.
 

Public Attributes

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

Detailed Description

Header form element.

A pseudo-element used for adding headers to form

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

Constructor & Destructor Documentation

◆ __construct()

MoodleQuickForm_header::__construct ( $elementName = null,
$text = null )

constructor

Parameters
string$elementNamename of the header element
string$texttext displayed in header element

Member Function Documentation

◆ accept()

MoodleQuickForm_header::accept ( & $renderer,
$required = false,
$error = null )

Accepts a renderer.

Parameters
HTML_QuickForm_Renderer$renderera HTML_QuickForm_Renderer object

◆ getHelpButton()

MoodleQuickForm_header::getHelpButton ( )

get html for help button

Return values
stringhtml for help button

◆ MoodleQuickForm_header()

MoodleQuickForm_header::MoodleQuickForm_header ( $elementName = null,
$text = null )

Old syntax of class constructor.

Deprecated in PHP7.

Deprecated
since Moodle 3.1

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