Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
core_competency\competency_rule_all Class Reference

Competency rule all class. More...

Inheritance diagram for core_competency\competency_rule_all:
core_competency\competency_rule

Public Member Functions

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

Static Public Member Functions

static get_name ()
 The name of the rule. More...
 
static migrate_config ($config, $mappings)
 Migrate rule config from one set of competencies to another. More...
 

Protected Member Functions

 get_config ()
 Get the rule config. More...
 

Protected Attributes

competency $competency
 The competency.
 

Detailed Description

Competency rule all class.

This rule is considered matched when all the children of a competency are completed.

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

Member Function Documentation

◆ get_config()

core_competency\competency_rule::get_config ( )
protectedinherited

Get the rule config.

Return values
mixed

Reimplemented in core_competency\competency_rule_points.

◆ get_name()

static core_competency\competency_rule_all::get_name ( )
static

The name of the rule.

Return values
lang_string

Reimplemented from core_competency\competency_rule.

◆ matches()

core_competency\competency_rule_all::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::migrate_config (   $config,
  $mappings 
)
staticinherited

Migrate rule config from one set of competencies to another.

Exceptions should be thrown when the migration can not be performed.

Parameters
string$configOriginal config rule of a competency.
array$mappingsArray that matches the original competency IDs with the new competencies objects.
Return values
stringNew configuration.
Exceptions
Exception

Reimplemented in core_competency\competency_rule_points.

◆ validate_config()

core_competency\competency_rule_all::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: