Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Class used to render a feedback input box. More...
Public Member Functions | |
__toString () | |
Convert this to an element and then to a string. More... | |
determine_format () | |
Create a text_attribute for this ui element. More... | |
get_label () | |
Get the string to use in the label for this input. More... | |
get_name () | |
Get a unique name for this form input. More... | |
get_value () | |
Get the value for this input. More... | |
is_disabled () | |
Determine if this input should be disabled based on the other settings. More... | |
set ($value) | |
Update the value for 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 = 'feedback' |
$name Name of this input | |
Class used to render a feedback input box.
|
inherited |
Convert this to an element and then to a string.
string |
gradereport_singleview\local\ui\feedback::determine_format | ( | ) |
Create a text_attribute for this ui element.
text_attribute |
Reimplemented from gradereport_singleview\local\ui\attribute_format.
gradereport_singleview\local\ui\feedback::get_label | ( | ) |
Get the string to use in the label for this input.
string | The label text |
|
inherited |
Get a unique name for this form input.
string | The form input name attribute. |
Implements gradereport_singleview\local\ui\unique_name.
gradereport_singleview\local\ui\feedback::get_value | ( | ) |
Get the value for this input.
string | The value |
Implements gradereport_singleview\local\ui\unique_value.
gradereport_singleview\local\ui\feedback::is_disabled | ( | ) |
Determine if this input should be disabled based on the other settings.
boolean | Should this input be disabled when the page loads. |
Implements gradereport_singleview\local\ui\be_disabled.
gradereport_singleview\local\ui\feedback::set | ( | $value | ) |
Update the value for this input.
string | $value | The new feedback value. |
string | Any error message |
Reimplemented from gradereport_singleview\local\ui\grade_attribute_format.