Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
tests\gradingform_rubric\generator\rubric Class Reference

Test rubric. More...

Public Member Functions

 __construct (string $name, string $description)
 Create a new gradingform_rubric_generator_rubric.
 
 add_criteria (criterion $criterion)
 Adds a criterion to the rubric.
 
 get_definition ()
 Creates the rubric using the appropriate APIs.
 
 set_option (string $key, $value)
 Set an option for the rubric.
 

Protected Member Functions

 get_all_criterion_values ()
 Get all criterion values.
 

Protected Attributes

array $criteria = []
 $criteria The criteria for this rubric.
 
string $description
 A description for this rubric.
 
string $name
 The name of this rubric.
 
array $options = []
 The rubric options.
 

Detailed Description

Test rubric.

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

Constructor & Destructor Documentation

◆ __construct()

tests\gradingform_rubric\generator\rubric::__construct ( string $name,
string $description )

Create a new gradingform_rubric_generator_rubric.

Parameters
string$name
string$description

Member Function Documentation

◆ add_criteria()

tests\gradingform_rubric\generator\rubric::add_criteria ( criterion $criterion)

Adds a criterion to the rubric.

Parameters
criterion$criterionThe criterion object (class below).
Return values
self

◆ get_all_criterion_values()

tests\gradingform_rubric\generator\rubric::get_all_criterion_values ( )
protected

Get all criterion values.

Return values
array

◆ set_option()

tests\gradingform_rubric\generator\rubric::set_option ( string $key,
$value )

Set an option for the rubric.

Parameters
string$key
mixed$value
Return values
self

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