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

Site competencies element. More...

Inheritance diagram for tool_lp_site_competencies_form_element:
MoodleQuickForm_hidden

Public Member Functions

 __construct ($elementname=null, $value='', $attributes=null)
 Constructor.
 
 accept (&$renderer, $required=false, $error=null)
 Accepts a renderer.
 
 getHelpButton ()
 get html for help button
 
 MoodleQuickForm_hidden ($elementName=null, $value='', $attributes=null)
 Old syntax of class constructor.
 
 setHelpButton ($helpbuttonargs, $function='helpbutton')
 
 toHtml ()
 Generate the hidden field and the controls to show and pick the competencies.
 

Public Attributes

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

Detailed Description

Site competencies element.

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

Constructor & Destructor Documentation

◆ __construct()

tool_lp_site_competencies_form_element::__construct ( $elementname = null,
$value = '',
$attributes = null )

Constructor.

Parameters
string$elementnameElement name.
string$valueThe element value.
mixed$attributesEither a typical HTML attribute string or an associative array.

Reimplemented from MoodleQuickForm_hidden.

Member Function Documentation

◆ accept()

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

Accepts a renderer.

Parameters
HTML_QuickForm_Renderer$rendererthe renderer for the element.
boolean$requirednot used.
string$errornot used.
Return values
void

◆ getHelpButton()

MoodleQuickForm_hidden::getHelpButton ( )
inherited

get html for help button

Return values
stringhtml for help button

◆ MoodleQuickForm_hidden()

MoodleQuickForm_hidden::MoodleQuickForm_hidden ( $elementName = null,
$value = '',
$attributes = null )
inherited

Old syntax of class constructor.

Deprecated in PHP7.

Deprecated
since Moodle 3.1

◆ setHelpButton()

MoodleQuickForm_hidden::setHelpButton ( $helpbuttonargs,
$function = 'helpbutton' )
inherited
Deprecated
since Moodle 2.0

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