Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
core_competency_generator Class Reference
Inheritance diagram for core_competency_generator:
component_generator_base

Public Member Functions

 create_competency ($record=null)
 Create a new competency. More...
 
 create_course_competency ($record=null)
 Create a new course competency. More...
 
 create_course_module_competency ($record=null)
 Create a new course module competency. More...
 
 create_evidence ($record=null)
 Create a new evidence. More...
 
 create_framework ($record=null)
 Create a new framework. More...
 
 create_plan ($record=null)
 Create a new plan. More...
 
 create_plan_competency ($record=null)
 Create a new plan competency. More...
 
 create_related_competency ($record=null)
 Create a related competency. More...
 
 create_template ($record=null)
 Create a template. More...
 
 create_template_cohort ($record=null)
 Create a new template cohort. More...
 
 create_template_competency ($record=null)
 Create a template competency. More...
 
 create_user_competency ($record=null)
 Create a new user competency. More...
 
 create_user_competency_course ($record=null)
 Create a new user competency course. More...
 
 create_user_competency_plan ($record=null)
 Create a new user competency plan. More...
 
 create_user_evidence ($record=null)
 Create a new user_evidence. More...
 
 create_user_evidence_competency ($record=null)
 Create a new user_evidence_comp. More...
 
 reset ()
 Reset process. More...
 

Protected Member Functions

 make_default_scale_configuration ($scaleid)
 Make a default scale configuration. More...
 
 set_user (?stdClass $user=null)
 Set the current user during data generation. More...
 

Protected Attributes

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.
 

Member Function Documentation

◆ create_competency()

core_competency_generator::create_competency (   $record = null)

Create a new competency.

Parameters
array | stdClass$record
Return values
competency

◆ create_course_competency()

core_competency_generator::create_course_competency (   $record = null)

Create a new course competency.

Parameters
array | stdClass$record
Return values
user_competency

◆ create_course_module_competency()

core_competency_generator::create_course_module_competency (   $record = null)

Create a new course module competency.

Parameters
array | stdClass$record
Return values
course_module_competency

◆ create_evidence()

core_competency_generator::create_evidence (   $record = null)

Create a new evidence.

Parameters
array | stdClass$record
Return values
evidence

◆ create_framework()

core_competency_generator::create_framework (   $record = null)

Create a new framework.

Parameters
array | stdClass$record
Return values
competency_framework

◆ create_plan()

core_competency_generator::create_plan (   $record = null)

Create a new plan.

Parameters
array | stdClass$record
Return values
plan

◆ create_plan_competency()

core_competency_generator::create_plan_competency (   $record = null)

Create a new plan competency.

Parameters
array | stdClass$record
Return values
plan_competency

◆ create_related_competency()

core_competency_generator::create_related_competency (   $record = null)

Create a related competency.

Parameters
array | stdClass$record
Return values
related_competency

◆ create_template()

core_competency_generator::create_template (   $record = null)

Create a template.

Parameters
array | stdClass$record
Return values
template

◆ create_template_cohort()

core_competency_generator::create_template_cohort (   $record = null)

Create a new template cohort.

Parameters
array | stdClass$record
Return values
template_cohort

◆ create_template_competency()

core_competency_generator::create_template_competency (   $record = null)

Create a template competency.

Parameters
array | stdClass$record
Return values
template_competency

◆ create_user_competency()

core_competency_generator::create_user_competency (   $record = null)

Create a new user competency.

Parameters
array | stdClass$record
Return values
user_competency

◆ create_user_competency_course()

core_competency_generator::create_user_competency_course (   $record = null)

Create a new user competency course.

Parameters
array | stdClass$record
Return values
user_competency_course

◆ create_user_competency_plan()

core_competency_generator::create_user_competency_plan (   $record = null)

Create a new user competency plan.

Parameters
array | stdClass$record
Return values
user_competency_plan

◆ create_user_evidence()

core_competency_generator::create_user_evidence (   $record = null)

Create a new user_evidence.

Parameters
array | stdClass$record
Return values
evidence

◆ create_user_evidence_competency()

core_competency_generator::create_user_evidence_competency (   $record = null)

Create a new user_evidence_comp.

Parameters
array | stdClass$record
Return values
evidence

◆ 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
int$scaleidThe scale ID.
Return values
arrayConfiguration as array.

◆ reset()

core_competency_generator::reset ( )

Reset process.

Do not call directly.

Return values
void

Reimplemented from component_generator_base.

◆ 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
stdClass$user

The documentation for this class was generated from the following file: