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.

(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.

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

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

return: int The competecy id
param: string $idnumber

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

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

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

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

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.

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

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

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

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

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

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

return: array Processed data.
param: array $data Raw 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.