Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
tests\gradingform_guide\generator\criterion Class Reference

Convenience class to create guide criterion. More...

Public Member Functions

 __construct (string $shortname, string $description, string $descriptionmarkers, float $maxscore)
 Constructor for this test_criterion object.
 
 get_all_values (int $sortorder)
 Get all values in an array for use when creating a new guide.
 
 get_description ()
 Get the description for this criterion.
 
 get_descriptionmarkers ()
 Get the description for markers of this criterion.
 
 get_maxscore ()
 Get the maxscore for this criterion.
 
 get_shortname ()
 Get the shortname for this criterion.
 

Detailed Description

Convenience class to create guide criterion.

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

Constructor & Destructor Documentation

◆ __construct()

tests\gradingform_guide\generator\criterion::__construct ( string $shortname,
string $description,
string $descriptionmarkers,
float $maxscore )

Constructor for this test_criterion object.

Parameters
string$shortnameThe shortname for the criterion
string$descriptionThe description for the criterion
string$descriptionmarkersThe description for the marker for this criterion
float$maxscoreThe maximum score possible for this criterion

Member Function Documentation

◆ get_all_values()

tests\gradingform_guide\generator\criterion::get_all_values ( int $sortorder)

Get all values in an array for use when creating a new guide.

Parameters
int$sortorder
Return values
array

◆ get_description()

tests\gradingform_guide\generator\criterion::get_description ( )

Get the description for this criterion.

Return values
string

◆ get_descriptionmarkers()

tests\gradingform_guide\generator\criterion::get_descriptionmarkers ( )

Get the description for markers of this criterion.

Return values
string

◆ get_maxscore()

tests\gradingform_guide\generator\criterion::get_maxscore ( )

Get the maxscore for this criterion.

Return values
float

◆ get_shortname()

tests\gradingform_guide\generator\criterion::get_shortname ( )

Get the shortname for this criterion.

Return values
string

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