Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Abstract class for a form element representing something about a grade_grade. More...
Public Member Functions | |
__construct ($grade=0) | |
Constructor. More... | |
__toString () | |
Convert this to an element and then to a string. More... | |
determine_format () | |
Used to convert this class to an "element" which can be converted to a string. More... | |
get_name () | |
Get a unique name for this form input. More... | |
set ($value) | |
Should be overridden by the child class to save the value returned in this input. More... | |
Public Attributes | |
grade_grade | $grade |
$grade The grade_grade of the input | |
string | $label |
$label The label of the input | |
string | $name |
$name The first part of the name attribute of the form input | |
Abstract class for a form element representing something about a grade_grade.
gradereport_singleview\local\ui\grade_attribute_format::__construct | ( | $grade = 0 | ) |
Constructor.
grade_grade | $grade | The grade_grade we are editing. |
|
inherited |
Convert this to an element and then to a string.
string |
|
abstractinherited |
Used to convert this class to an "element" which can be converted to a string.
element |
Reimplemented in gradereport_singleview\local\ui\range, gradereport_singleview\local\ui\override, gradereport_singleview\local\ui\finalgrade, gradereport_singleview\local\ui\feedback, and gradereport_singleview\local\ui\exclude.
gradereport_singleview\local\ui\grade_attribute_format::get_name | ( | ) |
Get a unique name for this form input.
string | The form input name attribute. |
Implements gradereport_singleview\local\ui\unique_name.
|
abstract |
Should be overridden by the child class to save the value returned in this input.
string | $value | The value from the form. |
string | Any error message |
Reimplemented in gradereport_singleview\local\ui\override, gradereport_singleview\local\ui\finalgrade, gradereport_singleview\local\ui\feedback, and gradereport_singleview\local\ui\exclude.