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

Checkbox element used for bulk inserting values in the gradebook. More...

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

Public Member Functions

 __construct ($item)
 Constructor. More...
 
 get_insert_value ($data)
 Get the value from either the user or grade. More...
 
 get_type ($data)
 Get the type of this input (user or grade) More...
 
 html ()
 Generate the html for this form element. More...
 
 is_applied ($data)
 Is this checkbox checked? 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

Checkbox element used for bulk inserting values in the gradebook.

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

Constructor & Destructor Documentation

◆ __construct()

gradereport_singleview\local\ui\bulk_insert::__construct (   $item)

Constructor.

Parameters
mixed$itemThe grade item or user.

Member Function Documentation

◆ get_insert_value()

gradereport_singleview\local\ui\bulk_insert::get_insert_value (   $data)

Get the value from either the user or grade.

Parameters
array$dataThe form data
Return values
string

◆ get_type()

gradereport_singleview\local\ui\bulk_insert::get_type (   $data)

Get the type of this input (user or grade)

Parameters
array$dataThe form data
Return values
string

◆ html()

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

Generate the html for this form element.

Return values
stringHTML

Reimplemented from gradereport_singleview\local\ui\element.

◆ is_applied()

gradereport_singleview\local\ui\bulk_insert::is_applied (   $data)

Is this checkbox checked?

Parameters
array$dataThe form data
Return values
bool

◆ 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\element::is_dropdown ( )
inherited

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 ( )
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: