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.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]

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: 587 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.

param: array|stdClass $record
return: competency

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

param: array|stdClass $record
return: competency_framework

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

param: array|stdClass $record
return: related_competency

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

param: array|stdClass $record
return: template

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

param: array|stdClass $record
return: template_competency

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

param: array|stdClass $record
return: user_competency

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

param: array|stdClass $record
return: plan

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

param: array|stdClass $record
return: user_competency_course

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

param: array|stdClass $record
return: user_competency_plan

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

param: array|stdClass $record
return: plan_competency

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

param: array|stdClass $record
return: template_cohort

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

param: array|stdClass $record
return: evidence

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

param: array|stdClass $record
return: user_competency

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

param: array|stdClass $record
return: course_module_competency

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

param: array|stdClass $record
return: evidence

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

param: array|stdClass $record
return: evidence

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.

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