Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Public Attributes | List of all members
gradereport_singleview\local\ui\dropdown_attribute Class Reference

Drop down list (select list) element. More...

Inheritance diagram for gradereport_singleview\local\ui\dropdown_attribute:
gradereport_singleview\local\ui\element

Public Member Functions

 __construct ($name, $options, $label, $selected='', $isdisabled=false)
 Constructor. More...
 
 html ()
 Render this element as html. More...
 
 is_checkbox ()
 Nasty function used for spreading checkbox logic all around. More...
 
 is_dropdown ()
 Nasty function spreading dropdown logic 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

Drop down list (select list) element.

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

Constructor & Destructor Documentation

◆ __construct()

gradereport_singleview\local\ui\dropdown_attribute::__construct (   $name,
  $options,
  $label,
  $selected = '',
  $isdisabled = false 
)

Constructor.

Parameters
string$nameThe first bit of the name of this input.
array$optionsThe options list for this select.
string$labelThe form label for this input.
string$selectedThe name of the selected item in this input.
bool$isdisabledAre we disabled?

Member Function Documentation

◆ html()

gradereport_singleview\local\ui\dropdown_attribute::html ( )

Render this element as html.

Return values
string

Reimplemented from gradereport_singleview\local\ui\element.

◆ is_checkbox()

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

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\dropdown_attribute::is_dropdown ( )

Nasty function spreading dropdown logic around.

Return values
bool

Reimplemented from gradereport_singleview\local\ui\element.

◆ is_textbox()

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

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: