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

Test guide. More...

Public Member Functions

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

Protected Member Functions

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

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.
 

Detailed Description

Test guide.

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

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: