Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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 (string $name, string $value, string $label)
 Constructor.
 
 html ()
 Return the HTML.
 
 is_checkbox ()
 Nasty function used for spreading checkbox logic all around.
 
 is_dropdown ()
 Nasty function used for spreading dropdown logic all around.
 
 is_textbox ()
 Nasty function used for spreading textbox logic all around.
 

Public Attributes

string $label
 The form label for this input.
 
string $name
 The first bit of the name for this input.
 
string $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 ( string $name,
string $value,
string $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()

◆ 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.

Member Data Documentation

◆ $label

string gradereport_singleview\local\ui\element::$label

The form label for this input.

$label

◆ $name

string gradereport_singleview\local\ui\element::$name

The first bit of the name for this input.

$name

◆ $value

string gradereport_singleview\local\ui\element::$value

The value for this input.

$value


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