Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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.

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