Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400]

Competency data generator.

Copyright: 2015 Frédéric Massart - FMCorz.net
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 590 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_competency_generator  - X-Ref

Competency data generator class.

reset()   X-Ref
Reset process.

Do not call directly.

return: void

create_competency($record = null)   X-Ref
Create a new competency.

return: competency
param: array|stdClass $record

create_framework($record = null)   X-Ref
Create a new framework.

return: competency_framework
param: array|stdClass $record

create_related_competency($record = null)   X-Ref
Create a related competency.

return: related_competency
param: array|stdClass $record

create_template($record = null)   X-Ref
Create a template.

return: template
param: array|stdClass $record

create_template_competency($record = null)   X-Ref
Create a template competency.

return: template_competency
param: array|stdClass $record

create_user_competency($record = null)   X-Ref
Create a new user competency.

return: user_competency
param: array|stdClass $record

create_plan($record = null)   X-Ref
Create a new plan.

return: plan
param: array|stdClass $record

create_user_competency_course($record = null)   X-Ref
Create a new user competency course.

return: user_competency_course
param: array|stdClass $record

create_user_competency_plan($record = null)   X-Ref
Create a new user competency plan.

return: user_competency_plan
param: array|stdClass $record

create_plan_competency($record = null)   X-Ref
Create a new plan competency.

return: plan_competency
param: array|stdClass $record

create_template_cohort($record = null)   X-Ref
Create a new template cohort.

return: template_cohort
param: array|stdClass $record

create_evidence($record = null)   X-Ref
Create a new evidence.

return: evidence
param: array|stdClass $record

create_course_competency($record = null)   X-Ref
Create a new course competency.

return: user_competency
param: array|stdClass $record

create_course_module_competency($record = null)   X-Ref
Create a new course module competency.

return: course_module_competency
param: array|stdClass $record

create_user_evidence($record = null)   X-Ref
Create a new user_evidence.

return: evidence
param: array|stdClass $record

create_user_evidence_competency($record = null)   X-Ref
Create a new user_evidence_comp.

return: evidence
param: array|stdClass $record

make_default_scale_configuration($scaleid)   X-Ref
Make a default scale configuration.

The last and second-last item will be flagged proficient. The
second-last item will be flagged as default.

return: array Configuration as array.
param: int $scaleid The scale ID.