Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Generator for the gradingforum_rubric plugin.

Copyright: 2018 Adrian Greeve
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 121 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

criterion:: (6 methods):
  __construct()
  add_level()
  get_description()
  get_levels()
  get_all_values()
  get_all_level_values()


Class: criterion  - X-Ref

Convenience class to create rubric criterion.

__construct(string $description, array $levels = [])   X-Ref
Constructor for this test_criterion object

param: string $description A description of this criterion.
param: array $levels

add_level(string $definition, int $score)   X-Ref
Adds levels to the criterion.

param: string $definition The definition for this level.
param: int $score The score received if this level is selected.
return: self

get_description()   X-Ref
Get the description for this criterion.

return: string

get_levels()   X-Ref
Get the levels for this criterion.

return: array

get_all_values(int $sortorder)   X-Ref
Get all values in an array for use when creating a new guide.

param: int $sortorder
return: array

get_all_level_values()   X-Ref
Get all level values.

return: array