|
cm_info | $cm |
| The course module information object.
|
|
array | $completionstate |
| The current state of core completion.
|
|
int | $userid |
| The user's ID.
|
|
◆ count_actions()
mod_bigbluebuttonbn\completion\custom_completion::count_actions |
( |
array |
$logs, |
|
|
callable |
$logvaluegetter |
|
) |
| |
|
protected |
Compute current state from logs.
- Parameters
-
array | $logs | |
callable | $logvaluegetter | |
- Return values
-
int | the number of hits on this particular rule |
◆ get_available_custom_rules()
mod_bigbluebuttonbn\completion\custom_completion::get_available_custom_rules |
( |
| ) |
|
◆ get_cm_completion_class()
static core_completion\activity_custom_completion::get_cm_completion_class |
( |
string |
$modname | ) |
|
|
staticinherited |
Fetches the module's custom completion class implementation if it's available.
- Parameters
-
string | $modname | The activity module name. Usually from cm_info::modname. |
- Return values
-
◆ get_completionattendance_value()
static mod_bigbluebuttonbn\completion\custom_completion::get_completionattendance_value |
( |
stdClass |
$log | ) |
|
|
staticprotected |
Get attendance summary value.
- Parameters
-
- Return values
-
◆ get_completionengagement_value()
static mod_bigbluebuttonbn\completion\custom_completion::get_completionengagement_value |
( |
stdClass |
$log, |
|
|
string |
$type |
|
) |
| |
|
staticprotected |
Get general completion engagement value.
- Parameters
-
- Return values
-
◆ get_completionengagementchats_value()
static mod_bigbluebuttonbn\completion\custom_completion::get_completionengagementchats_value |
( |
stdClass |
$log | ) |
|
|
staticprotected |
Get general completion engagement value.
- Parameters
-
- Return values
-
◆ get_completionengagementemojis_value()
static mod_bigbluebuttonbn\completion\custom_completion::get_completionengagementemojis_value |
( |
stdClass |
$log | ) |
|
|
staticprotected |
Get general completion engagement value.
- Parameters
-
- Return values
-
◆ get_completionengagementpollvotes_value()
static mod_bigbluebuttonbn\completion\custom_completion::get_completionengagementpollvotes_value |
( |
stdClass |
$log | ) |
|
|
staticprotected |
Get general completion engagement value.
- Parameters
-
- Return values
-
◆ get_completionengagementraisehand_value()
static mod_bigbluebuttonbn\completion\custom_completion::get_completionengagementraisehand_value |
( |
stdClass |
$log | ) |
|
|
staticprotected |
Get general completion engagement value.
- Parameters
-
- Return values
-
◆ get_completionengagementtalks_value()
static mod_bigbluebuttonbn\completion\custom_completion::get_completionengagementtalks_value |
( |
stdClass |
$log | ) |
|
|
staticprotected |
Get general completion engagement value.
- Parameters
-
- Return values
-
◆ get_completionview_value()
static mod_bigbluebuttonbn\completion\custom_completion::get_completionview_value |
( |
stdClass |
$log | ) |
|
|
staticprotected |
Get completion view value.
This will override the usual completion value (see COMPLETION_CUSTOM_MODULE_FLOW)
- Parameters
-
- Return values
-
◆ get_custom_rule_description()
core_completion\activity_custom_completion::get_custom_rule_description |
( |
string |
$rule | ) |
|
|
inherited |
Fetches the description for a given custom completion rule.
- Parameters
-
string | $rule | The custom completion rule. |
- Return values
-
◆ get_custom_rule_descriptions()
mod_bigbluebuttonbn\completion\custom_completion::get_custom_rule_descriptions |
( |
| ) |
|
◆ get_defined_custom_rules()
static mod_bigbluebuttonbn\completion\custom_completion::get_defined_custom_rules |
( |
| ) |
|
|
static |
◆ get_last_log_timestamp()
mod_bigbluebuttonbn\completion\custom_completion::get_last_log_timestamp |
( |
string |
$rule | ) |
|
Get current state in a friendly version.
- Parameters
-
- Return values
-
◆ get_overall_completion_state()
core_completion\activity_custom_completion::get_overall_completion_state |
( |
| ) |
|
|
inherited |
Fetches the overall completion status of this activity instance for a user based on its available custom completion rules.
- Return values
-
int | The completion state (e.g. COMPLETION_COMPLETE, COMPLETION_INCOMPLETE). |
◆ get_printable_state()
mod_bigbluebuttonbn\completion\custom_completion::get_printable_state |
( |
string |
$rule | ) |
|
Get current state in a friendly version.
- Parameters
-
- Return values
-
◆ get_sort_order()
mod_bigbluebuttonbn\completion\custom_completion::get_sort_order |
( |
| ) |
|
◆ get_state()
mod_bigbluebuttonbn\completion\custom_completion::get_state |
( |
string |
$rule | ) |
|
◆ is_available()
core_completion\activity_custom_completion::is_available |
( |
string |
$rule | ) |
|
|
inherited |
Checks whether the custom completion rule is being used by the activity module instance.
- Parameters
-
string | $rule | The custom completion rule. |
- Return values
-
◆ is_defined()
core_completion\activity_custom_completion::is_defined |
( |
string |
$rule | ) |
|
|
inherited |
Whether this module defines this custom rule.
- Parameters
-
string | $rule | The custom completion rule. |
- Return values
-
◆ manual_completion_always_shown()
core_completion\activity_custom_completion::manual_completion_always_shown |
( |
| ) |
|
|
inherited |
◆ validate_rule()
core_completion\activity_custom_completion::validate_rule |
( |
string |
$rule | ) |
|
|
inherited |
Validates that the custom rule is defined by this plugin and is enabled for this activity instance.
- Parameters
-
string | $rule | The custom completion rule. |
The documentation for this class was generated from the following file:
- mod/bigbluebuttonbn/classes/completion/custom_completion.php