Convenience class to create rubric criterion.
More...
|
| __construct (string $description, array $levels=[]) |
| Constructor for this test_criterion object.
|
|
| add_level (string $definition, int $score) |
| Adds levels to the criterion.
|
|
| get_all_level_values () |
| Get all level values.
|
|
| 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_levels () |
| Get the levels for this criterion.
|
|
|
string | $description |
| $description A description of the criterion.
|
|
array | $levels = [] |
| $levels The levels for this criterion.
|
|
integer | $sortorder = 0 |
| $sortorder sort order of the criterion.
|
|
Convenience class to create rubric criterion.
- Copyright
- 2018 Adrian Greeve <adriangreeve.com>
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
tests\gradingform_rubric\generator\criterion::__construct |
( |
string | $description, |
|
|
array | $levels = [] ) |
Constructor for this test_criterion object.
- Parameters
-
string | $description | A description of this criterion. |
array | $levels | |
◆ add_level()
tests\gradingform_rubric\generator\criterion::add_level |
( |
string | $definition, |
|
|
int | $score ) |
Adds levels to the criterion.
- Parameters
-
string | $definition | The definition for this level. |
int | $score | The score received if this level is selected. |
- Return values
-
◆ get_all_level_values()
tests\gradingform_rubric\generator\criterion::get_all_level_values |
( |
| ) |
|
Get all level values.
- Return values
-
◆ get_all_values()
tests\gradingform_rubric\generator\criterion::get_all_values |
( |
int | $sortorder | ) |
|
Get all values in an array for use when creating a new guide.
- Parameters
-
- Return values
-
◆ get_description()
tests\gradingform_rubric\generator\criterion::get_description |
( |
| ) |
|
Get the description for this criterion.
- Return values
-
◆ get_levels()
tests\gradingform_rubric\generator\criterion::get_levels |
( |
| ) |
|
Get the levels for this criterion.
- Return values
-
The documentation for this class was generated from the following file:
- grade/grading/form/rubric/tests/generator/criterion.php