Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
MoodleQuickForm_static Class Reference

Text type element. More...

Inheritance diagram for MoodleQuickForm_static:

Public Member Functions

 __construct ($elementName=null, $elementLabel=null, $text=null)
 constructor
 
 export_for_template (renderer_base $output)
 
 getElementTemplateType ()
 Gets the type of form element.
 
 getHelpButton ()
 get html for help button
 
 MoodleQuickForm_static ($elementName=null, $elementLabel=null, $text=null)
 Old syntax of class constructor.
 

Public Attributes

string $_elementTemplateType ='static'
 Form element type.
 
string $_helpbutton =''
 html for help button, if empty then no help
 

Detailed Description

Text type element.

HTML class for a text type element

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

Constructor & Destructor Documentation

◆ __construct()

MoodleQuickForm_static::__construct ( $elementName = null,
$elementLabel = null,
$text = null )

constructor

Parameters
string$elementName(optional) name of the text field
string$elementLabel(optional) text field label
string$text(optional) Text to put in text field

Member Function Documentation

◆ getElementTemplateType()

MoodleQuickForm_static::getElementTemplateType ( )

Gets the type of form element.

Return values
string

◆ getHelpButton()

MoodleQuickForm_static::getHelpButton ( )

get html for help button

Return values
stringhtml for help button

◆ MoodleQuickForm_static()

MoodleQuickForm_static::MoodleQuickForm_static ( $elementName = null,
$elementLabel = 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: