Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
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. More...
 
 get_all_values (int $sortorder)
 Get all values in an array for use when creating a new guide. More...
 
 get_description ()
 Get the description for this criterion. More...
 
 get_descriptionmarkers ()
 Get the description for markers of this criterion. More...
 
 get_maxscore ()
 Get the maxscore for this criterion. More...
 
 get_shortname ()
 Get the shortname for this criterion. More...
 

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: