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

Class used to render a feedback input box. More...

Inheritance diagram for gradereport_singleview\local\ui\feedback:
gradereport_singleview\local\ui\grade_attribute_format gradereport_singleview\local\ui\unique_value gradereport_singleview\local\ui\be_disabled gradereport_singleview\local\ui\attribute_format gradereport_singleview\local\ui\unique_name

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
 

Detailed Description

Class used to render a feedback input box.

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

Member Function Documentation

◆ __toString()

gradereport_singleview\local\ui\attribute_format::__toString ( )
inherited

Convert this to an element and then to a string.

Return values
string

◆ determine_format()

gradereport_singleview\local\ui\feedback::determine_format ( )

Create a text_attribute for this ui element.

Return values
text_attribute

Reimplemented from gradereport_singleview\local\ui\attribute_format.

◆ get_label()

gradereport_singleview\local\ui\feedback::get_label ( )

Get the string to use in the label for this input.

Return values
stringThe label text

◆ get_name()

gradereport_singleview\local\ui\grade_attribute_format::get_name ( )
inherited

Get a unique name for this form input.

Return values
stringThe form input name attribute.

Implements gradereport_singleview\local\ui\unique_name.

◆ get_value()

gradereport_singleview\local\ui\feedback::get_value ( )

Get the value for this input.

Return values
stringThe value

Implements gradereport_singleview\local\ui\unique_value.

◆ is_disabled()

gradereport_singleview\local\ui\feedback::is_disabled ( )

Determine if this input should be disabled based on the other settings.

Return values
booleanShould this input be disabled when the page loads.

Implements gradereport_singleview\local\ui\be_disabled.

◆ set()

gradereport_singleview\local\ui\feedback::set (   $value)

Update the value for this input.

Parameters
string$valueThe new feedback value.
Return values
stringAny error message

Reimplemented from gradereport_singleview\local\ui\grade_attribute_format.


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