Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tests\gradingform_guide\generator\guide Class Reference

Public Member Functions

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

Protected Member Functions

 get_critiera_as_array ()
 Get the criteria as an array for use in creation. More...
 

Protected Attributes

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

Constructor & Destructor Documentation

◆ __construct()

tests\gradingform_guide\generator\guide::__construct ( string  $name,
string  $description 
)

Create a new gradingform_guide_generator_criterion.

Parameters
string$name
string$description

Member Function Documentation

◆ add_criteria()

tests\gradingform_guide\generator\guide::add_criteria ( criterion  $criterion)

Adds a criterion to the guide.

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

◆ get_critiera_as_array()

tests\gradingform_guide\generator\guide::get_critiera_as_array ( )
protected

Get the criteria as an array for use in creation.

Return values
array

◆ set_option()

tests\gradingform_guide\generator\guide::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: