Competency data generator class.
More...
|
| | insert_files (stdClass $instance, stdClass $record, string $table, context $context, string $component, string $filearea, int $targetitemid) |
| | Update the instance record, inserting any files that are referenced.
|
| |
| | make_default_scale_configuration ($scaleid) |
| | Make a default scale configuration.
|
| |
| | set_user (?stdClass $user=null) |
| | Set the current user during data generation.
|
| |
|
|
int | $competencycount = 0 |
| | Number of created competencies.
|
| |
|
testing_data_generator | $datagenerator |
| |
|
int | $frameworkcount = 0 |
| | Number of created frameworks.
|
| |
|
int | $plancount = 0 |
| | Number of created plans.
|
| |
|
stdClass | $scale |
| | Scale that we might need.
|
| |
|
int | $templatecount = 0 |
| | Number of created templates.
|
| |
|
int | $userevidencecount = 0 |
| | Number of created user_evidence.
|
| |
Competency data generator class.
- Copyright
- 2015 Frédéric Massart - FMCorz.net
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ create_competency()
| core_competency_generator::create_competency |
( |
| $record = null | ) |
|
Create a new competency.
- Parameters
-
- Return values
-
◆ create_course_competency()
| core_competency_generator::create_course_competency |
( |
| $record = null | ) |
|
Create a new course competency.
- Parameters
-
- Return values
-
◆ create_course_module_competency()
| core_competency_generator::create_course_module_competency |
( |
| $record = null | ) |
|
Create a new course module competency.
- Parameters
-
- Return values
-
◆ create_evidence()
| core_competency_generator::create_evidence |
( |
| $record = null | ) |
|
Create a new evidence.
- Parameters
-
- Return values
-
◆ create_framework()
| core_competency_generator::create_framework |
( |
| $record = null | ) |
|
Create a new framework.
- Parameters
-
- Return values
-
◆ create_plan()
| core_competency_generator::create_plan |
( |
| $record = null | ) |
|
Create a new plan.
- Parameters
-
- Return values
-
◆ create_plan_competency()
| core_competency_generator::create_plan_competency |
( |
| $record = null | ) |
|
Create a new plan competency.
- Parameters
-
- Return values
-
◆ create_related_competency()
| core_competency_generator::create_related_competency |
( |
| $record = null | ) |
|
Create a related competency.
- Parameters
-
- Return values
-
◆ create_template()
| core_competency_generator::create_template |
( |
| $record = null | ) |
|
Create a template.
- Parameters
-
- Return values
-
◆ create_template_cohort()
| core_competency_generator::create_template_cohort |
( |
| $record = null | ) |
|
Create a new template cohort.
- Parameters
-
- Return values
-
◆ create_template_competency()
| core_competency_generator::create_template_competency |
( |
| $record = null | ) |
|
Create a template competency.
- Parameters
-
- Return values
-
◆ create_user_competency()
| core_competency_generator::create_user_competency |
( |
| $record = null | ) |
|
Create a new user competency.
- Parameters
-
- Return values
-
◆ create_user_competency_course()
| core_competency_generator::create_user_competency_course |
( |
| $record = null | ) |
|
Create a new user competency course.
- Parameters
-
- Return values
-
◆ create_user_competency_plan()
| core_competency_generator::create_user_competency_plan |
( |
| $record = null | ) |
|
Create a new user competency plan.
- Parameters
-
- Return values
-
◆ create_user_evidence()
| core_competency_generator::create_user_evidence |
( |
| $record = null | ) |
|
◆ create_user_evidence_competency()
| core_competency_generator::create_user_evidence_competency |
( |
| $record = null | ) |
|
Create a new user_evidence_comp.
- Parameters
-
- Return values
-
◆ insert_files()
| component_generator_base::insert_files |
( |
stdClass | $instance, |
|
|
stdClass | $record, |
|
|
string | $table, |
|
|
context | $context, |
|
|
string | $component, |
|
|
string | $filearea, |
|
|
int | $targetitemid ) |
|
protectedinherited |
Update the instance record, inserting any files that are referenced.
- Parameters
-
| stdClass | $instance | The instance record of the already-created record |
| stdClass | $record | The data passed in to create the instance |
| string | $table | The table that the data exists in |
| context | $context | The context of the instance |
| string | $component | The component of the owning plugin |
| string | $filearea | The name of the file area |
| int | $targetitemid | The itemid to use when saving the files |
- Return values
-
| stdClass | The updated instance record |
◆ make_default_scale_configuration()
| core_competency_generator::make_default_scale_configuration |
( |
| $scaleid | ) |
|
|
protected |
Make a default scale configuration.
The last and second-last item will be flagged proficient. The second-last item will be flagged as default.
- Parameters
-
- Return values
-
| array | Configuration as array. |
◆ reset()
| core_competency_generator::reset |
( |
| ) |
|
◆ set_user()
| component_generator_base::set_user |
( |
?stdClass | $user = null | ) |
|
|
protectedinherited |
Set the current user during data generation.
This should be avoided wherever possible, but in some situations underlying code will insert data as the current user.
- Parameters
-
The documentation for this class was generated from the following file:
- competency/tests/generator/lib.php