Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Static Public Member Functions | |
static | add_communication_membership_for_enrolled_user (after_user_enrolled $hook,) |
Add communication instance membership for an enrolled user. | |
static | add_members_to_group_room (after_group_membership_added $hook,) |
Add members to group room when a new member is added to the group. | |
static | create_course_communication (after_course_created $hook,) |
Create course communication instance. | |
static | create_group_communication (after_group_created $hook,) |
Communication api call to create room for a group if course has group mode enabled. | |
static | delete_course_communication (before_course_deleted $hook,) |
Delete course communication data and remove members. | |
static | delete_group_communication (after_group_deleted $hook) |
Delete the communication room for a group if course has group mode enabled. | |
static | delete_user_room_memberships (before_user_deleted $hook,) |
Delete all room memberships for a user. | |
static | remove_communication_membership_for_unenrolled_user (before_user_enrolment_removed $hook,) |
Remove communication instance membership for an enrolled user. | |
static | remove_communication_memberships_for_enrol_instance_deletion (before_enrol_instance_deleted $hook,) |
Remove the communication instance memberships when an enrolment instance is deleted. | |
static | remove_members_from_group_room (after_group_membership_removed $hook,) |
Remove members from the room when a member is removed from group room. | |
static | update_communication_membership_for_updated_user_enrolment (before_user_enrolment_updated $hook,) |
Update the communication instance membership for the user enrolment updates. | |
static | update_communication_memberships_for_enrol_status_change (after_enrol_instance_status_updated $hook,) |
Update the communication memberships for enrol status change. | |
static | update_course_communication (after_course_updated $hook,) |
Update the course communication instance. | |
static | update_group_communication (after_group_updated $hook,) |
Communication api call to update room for a group if course has group mode enabled. | |
static | update_user_membership_for_role_changes (after_role_assigned|after_role_unassigned $hook,) |
Update the room membership of the user for role assigned in a course. | |
static | update_user_room_memberships (before_user_updated $hook,) |
Update the room membership for the user updates. | |
Static Protected Member Functions | |
static | get_group_and_course_data_for_group_hook (mixed $hook) |
Get the course and group object for the group hook. | |
|
static |
Add communication instance membership for an enrolled user.
after_user_enrolled | $hook | The user enrolled hook. |
|
static |
Add members to group room when a new member is added to the group.
after_group_membership_added | $hook | The group membership added hook. |
|
static |
Create course communication instance.
after_course_created | $hook | The course created hook. |
|
static |
Communication api call to create room for a group if course has group mode enabled.
after_group_created | $hook | The group created hook. |
|
static |
Delete course communication data and remove members.
Course can have communication data if it is a group or a course. This action is important to perform even if the experimental feature is disabled.
before_course_deleted | $hook | The course deleted hook. |
|
static |
Delete the communication room for a group if course has group mode enabled.
after_group_deleted | $hook | The group deleted hook. |
|
static |
Delete all room memberships for a user.
before_user_deleted | $hook | The user deleted hook. |
|
staticprotected |
Get the course and group object for the group hook.
mixed | $hook | The hook object. |
array |
|
static |
Remove communication instance membership for an enrolled user.
before_user_enrolment_removed | $hook | The user unenrolled hook. |
|
static |
Remove the communication instance memberships when an enrolment instance is deleted.
before_enrol_instance_deleted | $hook | The enrol instance deleted hook. |
|
static |
Remove members from the room when a member is removed from group room.
after_group_membership_removed | $hook | The group membership removed hook. |
|
static |
Update the communication instance membership for the user enrolment updates.
before_user_enrolment_updated | $hook | The user enrolment updated hook. |
|
static |
Update the communication memberships for enrol status change.
after_enrol_instance_status_updated | $hook | The enrol status updated hook. |
|
static |
Update the course communication instance.
after_course_updated | $hook | The course updated hook. |
|
static |
Communication api call to update room for a group if course has group mode enabled.
after_group_updated | $hook | The group updated hook. |
|
static |
Update the room membership of the user for role assigned in a course.
after_role_assigned | after_role_unassigned | $hook |
|
static |
Update the room membership for the user updates.
before_user_updated | $hook | The user updated hook. |