Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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_guide plugin.

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

Defines 1 class

criterion:: (6 methods):
  __construct()
  get_description()
  get_descriptionmarkers()
  get_shortname()
  get_maxscore()
  get_all_values()


Class: criterion  - X-Ref

Convenience class to create guide criterion.

__construct(string $shortname, string $description, string $descriptionmarkers, float $maxscore)   X-Ref
Constructor for this test_criterion object

param: string $shortname The shortname for the criterion
param: string $description The description for the criterion
param: string $descriptionmarkers The description for the marker for this criterion
param: float $maxscore The maximum score possible for this criterion

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

return: string

get_descriptionmarkers()   X-Ref
Get the description for markers of this criterion.

return: string

get_shortname()   X-Ref
Get the shortname for this criterion.

return: string

get_maxscore()   X-Ref
Get the maxscore for this criterion.

return: float

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