Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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.
 
 get_insert_value ($data)
 Get the value from either the user or grade.
 
 get_type ($data)
 Get the type of this input (user or grade)
 
 html ()
 Generate the html for this form element.
 
 is_applied ($data)
 Is this checkbox checked?
 
 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.
 

Protected Attributes

string $applyname
 $applyname To store the "apply" suffix.
 
string $insertname
 $insertname To store the "value" suffix.
 
string $selectname
 $selectname To store the "type" suffix.
 

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 | object$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 | object$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 | object$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.

Member Data Documentation

◆ $label

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

The form label for this input.

$label

◆ $name

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

The first bit of the name for this input.

$name

◆ $value

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

The value for this input.

$value


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