Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core_competency\competency_rule_points Class Reference

Competency rule points based class. More...

Inheritance diagram for core_competency\competency_rule_points:

Public Member Functions

 matches (user_competency $usercompetency)
 Whether or not the rule is matched.
 
 validate_config ($value)
 Validate the rule config.
 

Static Public Member Functions

static get_name ()
 The name of the rule.
 
static migrate_config ($config, $mappings)
 Migrate rule config when duplicate competency based on mapping competencies ids.
 

Protected Member Functions

 get_config ()
 Get the rule config.
 

Protected Attributes

competency $competency
 The competency.
 

Detailed Description

Competency rule points based class.

This rule matches when related competencies contribute for a required number of points.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_config()

core_competency\competency_rule_points::get_config ( )
protected

Get the rule config.

Return values
mixed

Reimplemented from core_competency\competency_rule.

◆ get_name()

static core_competency\competency_rule_points::get_name ( )
static

The name of the rule.

Return values
lang_string

Reimplemented from core_competency\competency_rule.

◆ matches()

core_competency\competency_rule_points::matches ( user_competency $usercompetency)

Whether or not the rule is matched.

Parameters
user_competency$usercompetencyThe user competency.
Return values
bool

Reimplemented from core_competency\competency_rule.

◆ migrate_config()

static core_competency\competency_rule_points::migrate_config ( $config,
$mappings )
static

Migrate rule config when duplicate competency based on mapping competencies ids.

Parameters
string$configthe config rule of a competency
array$mappingsarray that match the old competency ids with the new competencies
Return values
string

Reimplemented from core_competency\competency_rule.

◆ validate_config()

core_competency\competency_rule_points::validate_config ( $value)

Validate the rule config.

Parameters
string$valueThe value to validate.
Return values
bool

Reimplemented from core_competency\competency_rule.


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