|
static | has_nofactivities_fields () |
| Checks if a 'number' field with 'nofactivities' provider exists in the course fields.
|
|
◆ course_module_created()
static customfield_number\observer::course_module_created |
( |
\core\event\course_module_created | $event | ) |
|
|
static |
When a course module was created, schedule recalculation for all 'nofactivities' custom fields.
- Parameters
-
core::event::course_module_created | $event | |
◆ course_module_deleted()
When a course module was deleted, schedule recalculation for all 'nofactivities' custom fields.
- Parameters
-
◆ course_module_updated()
static customfield_number\observer::course_module_updated |
( |
\core\event\course_module_updated | $event | ) |
|
|
static |
When a course module was updated, schedule recalculation for all 'nofactivities' custom fields.
Module visibility may change following an 'updated' event and it will affect the activities count
- Parameters
-
core::event::course_module_updated | $event | |
◆ field_created()
When a 'number' custom field was created, schedule recalculation for the field data.
- Parameters
-
◆ field_updated()
When a 'number' custom field was updated, schedule recalculation for the field data.
- Parameters
-
◆ has_nofactivities_fields()
static customfield_number\observer::has_nofactivities_fields |
( |
| ) |
|
|
staticprotected |
Checks if a 'number' field with 'nofactivities' provider exists in the course fields.
This method is very fast, it only performs one DB query and only once per request
- Return values
-
The documentation for this class was generated from the following file:
- customfield/field/number/classes/observer.php