Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
gradereport_singleview\local\ui\element Class Reference

UI Element for an excluded grade_grade. More...

Inheritance diagram for gradereport_singleview\local\ui\element:
gradereport_singleview\local\ui\bulk_insert gradereport_singleview\local\ui\checkbox_attribute gradereport_singleview\local\ui\dropdown_attribute gradereport_singleview\local\ui\empty_element gradereport_singleview\local\ui\text_attribute

Public Member Functions

 __construct ($name, $value, $label)
 Constructor. More...
 
 html ()
 Return the HTML. More...
 
 is_checkbox ()
 Nasty function used for spreading checkbox logic all around. More...
 
 is_dropdown ()
 Nasty function used for spreading dropdown logic all around. More...
 
 is_textbox ()
 Nasty function used for spreading textbox logic all around. More...
 

Public Attributes

string $label
 $label The form label for this input.
 
string $name
 $name The first bit of the name for this input.
 
string $value
 $value The value for this input.
 

Detailed Description

UI Element for an excluded grade_grade.

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

Constructor & Destructor Documentation

◆ __construct()

gradereport_singleview\local\ui\element::__construct (   $name,
  $value,
  $label 
)

Constructor.

Parameters
string$nameThe first bit of the name for this input
string$valueThe value for this input
string$labelThe label for this form field

Member Function Documentation

◆ html()

gradereport_singleview\local\ui\element::html ( )
abstract

◆ is_checkbox()

gradereport_singleview\local\ui\element::is_checkbox ( )

Nasty function used for spreading checkbox logic all around.

Return values
bool

Reimplemented in gradereport_singleview\local\ui\checkbox_attribute.

◆ is_dropdown()

gradereport_singleview\local\ui\element::is_dropdown ( )

Nasty function used for spreading dropdown logic all around.

Return values
bool

Reimplemented in gradereport_singleview\local\ui\dropdown_attribute.

◆ is_textbox()

gradereport_singleview\local\ui\element::is_textbox ( )

Nasty function used for spreading textbox logic all around.

Return values
bool

Reimplemented in gradereport_singleview\local\ui\text_attribute.


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