Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401]

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.

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.