Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tests\gradingform_rubric\generator\rubric Class Reference

Public Member Functions

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

Protected Member Functions

 get_all_criterion_values ()
 Get all criterion values. More...
 

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.
 

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: