Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Competency rule all.

Copyright: 2015 Frédéric Massart - FMCorz.net
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 92 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

competency_rule_all:: (3 methods):
  matches()
  validate_config()
  get_name()


Class: competency_rule_all  - X-Ref

Competency rule all class.

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

matches(user_competency $usercompetency)   X-Ref
Whether or not the rule is matched.

param: user_competency $usercompetency The user competency.
return: bool

validate_config($value)   X-Ref
Validate the rule config.

param: string $value The value to validate.
return: bool

get_name()   X-Ref
The name of the rule.

return: lang_string