Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.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.