Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Public Attributes | List of all members
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. More...
 
 accept (&$renderer, $required=false, $error=null)
 Accepts a renderer. More...
 
 getHelpButton ()
 get html for help button More...
 
 MoodleQuickForm_hidden ($elementName=null, $value='', $attributes=null)
 Old syntax of class constructor. More...
 
 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: