Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

File Size: 296 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: custom_completion  - X-Ref

Class custom_completion

get_state(string $rule)   X-Ref
Get current state

return: int
param: string $rule

aggregate_values(array $logs, callable $logvaluegetter)   X-Ref
Compute current state from logs.

return: int the sum of all values for this particular event (it can be a duration or a number of hits)
param: array $logs
param: callable $logvaluegetter

get_defined_custom_rules()   X-Ref
Fetch the list of custom completion rules that this module defines.

return: array

get_custom_rule_descriptions()   X-Ref
Returns an associative array of the descriptions of custom completion rules.

return: array

get_sort_order()   X-Ref
Returns an array of all completion rules, in the order they should be displayed to users.

return: array

get_printable_states()   X-Ref
Get current states of completion in a human-friendly version

return: string[]

get_printable_state(string $rule)   X-Ref
Get current states of completion for a rule in a human-friendly version

return: string
param: string $rule

get_last_log_timestamp(string $rule)   X-Ref
Get current state in a friendly version

return: string
param: string $rule

get_completionattendance_value(stdClass $log)   X-Ref
Get attendance summary value

return: int
param: stdClass $log

get_completionengagementchats_value(stdClass $log)   X-Ref
Get general completion engagement value

return: int
param: stdClass $log

get_completionengagementtalks_value(stdClass $log)   X-Ref
Get general completion engagement value

return: int
param: stdClass $log

get_completionengagementraisehand_value(stdClass $log)   X-Ref
Get general completion engagement value

return: int
param: stdClass $log

get_completionengagementpollvotes_value(stdClass $log)   X-Ref
Get general completion engagement value

return: int
param: stdClass $log

get_completionengagementemojis_value(stdClass $log)   X-Ref
Get general completion engagement value

return: int
param: stdClass $log

get_completionengagement_value(stdClass $log, string $type)   X-Ref
Get general completion engagement value

return: int
param: stdClass $log
param: string $type