Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

(no description)

File Size: 261 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: behat_core_competency_generator  - X-Ref

Behat data generator for core_competency.

get_creatable_entities()   X-Ref
Get a list of the entities that Behat can create using the generator step.

return: array

get_competencyframework_id(string $idnumber)   X-Ref
Get the competecy framework id using an idnumber.

param: string $idnumber
return: int The competecy framework id

get_competency_id(string $idnumber)   X-Ref
Get the competecy id using an idnumber.

param: string $idnumber
return: int The competecy id

get_plan_id(string $name)   X-Ref
Get the learning plan id using a name.

param: string $name
return: int The learning plan id

get_relatedcompetency_id(string $idnumber)   X-Ref
Get the related competecy id using an idnumber.

param: string $idnumber
return: int The related competecy id

process_plan(array $data)   X-Ref
Add a plan.

param: array $data Plan data.

preprocess_user_competency(array $data)   X-Ref
Preprocess user competency data.

param: array $data Raw data.
return: array Processed data.

preprocess_user_competency_course(array $data)   X-Ref
Preprocess user course competency data.

param: array $data Raw data.
return: array Processed data.

preprocess_user_competency_plan(array $data)   X-Ref
Preprocess user learning plan competency data.

param: array $data Raw data.
return: array Processed data.

preprocess_plan(array $data)   X-Ref
Preprocess plan data.

param: array $data Raw data.
return: array Processed data.

prepare_grading(array &$data)   X-Ref
Prepare grading attributes for record data.

param: array $data Record data.

get_data_generator()   X-Ref
Get the module data generator.

return: core_competency_generator Competency data generator.