Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Static Public Member Functions | |
static | get_printable_event_name (object $log) |
Get the event name (human friendly version) | |
static | get_user_completion_logs (instance $instance, ?int $userid, ?array $filters, ?int $timestart=0) |
Get the user event logs related to completion, for the specified user in the named instance. | |
static | get_user_completion_logs_max_timestamp (instance $instance, ?int $userid, ?array $filters, ?int $timestart=0) |
Get the latest timestamp for any event logs related to completion, for the specified user in the named instance. | |
static | get_user_completion_logs_with_userfields (instance $instance, ?int $userid, ?array $filters, ?int $timestart=0) |
Get the user event logs related to completion, for the specified user in the named instance. | |
static | log_event_callback (instance $instance, array $overrides, array $meta) |
Log an event callback. | |
static | log_event_summary (instance $instance, array $overrides=[], array $meta=[]) |
Log an event summary event. | |
static | log_instance_created (stdClass $instancedata) |
Log that an instance was created. | |
static | log_instance_deleted (instance $instance) |
Log an instance deleted event. | |
static | log_instance_updated (instance $instance) |
Log that an instance was updated. | |
static | log_instance_viewed (instance $instance) |
Log that an instance was viewed. | |
static | log_meeting_ended_event (instance $instance) |
Log the events for when a meeting was ended. | |
static | log_meeting_joined_event (instance $instance, int $origin) |
Log the relevant events for when a meeting was joined. | |
static | log_meeting_left_event (instance $instance) |
Log the relevant events for when a user left a meeting. | |
static | log_recording_played_event (instance $instance, int $rid) |
Log the relevant events for when a recording has been played. | |
Public Attributes | |
string const | EVENT_ADD = 'Add' |
The bigbluebuttonbn Add event. | |
string const | EVENT_CALLBACK = 'Callback' |
The bigbluebuttonbn Callback event. | |
string const | EVENT_CREATE = 'Create' |
The bigbluebuttonbn Create event. | |
string const | EVENT_CREATE_MIGRATED = 'create-migrated' |
This is a specific log to mark this log as upgraded: used only in the upgrade process from 2.4. | |
string const | EVENT_DELETE = 'Delete' |
The bigbluebuttonbn Delete event. | |
string const | EVENT_EDIT = 'Edit' |
The bigbluebuttonbn Edit event. | |
string const | EVENT_IMPORT = 'Import' |
The bigbluebuttonbn Import event. | |
string const | EVENT_IMPORT_MIGRATED = 'import-migrated' |
This is a specific log to mark this log as upgraded: used only in the upgrade process from 2.4. | |
string const | EVENT_JOIN = 'Join' |
The bigbluebuttonbn Join event. | |
string const | EVENT_LOGOUT = 'Logout' |
The bigbluebuttonbn Logout event. | |
string const | EVENT_MEETING_START = 'meeting_start' |
The bigbluebuttonbn meeting_start event. | |
string const | EVENT_PLAYED = 'Played' |
The bigbluebuttonbn Playback event. | |
string const | EVENT_SUMMARY = 'Summary' |
The bigbluebuttonbn Summary event. | |
const | LOG_TO_STRING |
Log event to string that can be internationalised via get_string. | |
int const | ORIGIN_BASE = 0 |
The user accessed the session from activity page. | |
int const | ORIGIN_INDEX = 2 |
The user accessed the session from Index. | |
int const | ORIGIN_TIMELINE = 1 |
The user accessed the session from Timeline. | |
Static Protected Member Functions | |
static | count_callback_events (string $id, string $callbacktype='recording_ready') |
Helper function to count the number of callback logs matching the supplied specifications. | |
static | get_user_completion_sql_params (instance $instance, ?int $userid, ?array $filters, ?int $timestart, ?string $logtablealias=null) |
Helper method to get the right SQL query for completion. | |
static | log (instance $instance, string $event, array $overrides=[], ?string $meta=null) |
Register a bigbluebuttonbn event from an instance. | |
static | log_moodle_event (instance $instance, string $type, array $options=[]) |
Helper register a bigbluebuttonbn event. | |
static | raw_log (string $event, int $instanceid, int $courseid, string $meetingid, array $overrides=[], ?string $meta=null) |
Register a bigbluebuttonbn event from raw data. | |
|
staticprotected |
Helper function to count the number of callback logs matching the supplied specifications.
string | $id | |
string | $callbacktype |
int |
|
static |
Get the event name (human friendly version)
object | $log | object as returned by get_user_completion_logs_with_userfields |
|
static |
Get the user event logs related to completion, for the specified user in the named instance.
instance | $instance | |
int | null | $userid | |
array | null | $filters | |
int | null | $timestart |
array |
|
static |
Get the latest timestamp for any event logs related to completion, for the specified user in the named instance.
instance | $instance | |
int | null | $userid | |
array | null | $filters | |
int | null | $timestart |
int |
|
static |
Get the user event logs related to completion, for the specified user in the named instance.
instance | $instance | |
int | null | $userid | |
array | null | $filters | |
int | null | $timestart |
array |
|
staticprotected |
Helper method to get the right SQL query for completion.
instance | $instance | |
int | null | $userid | |
array | null | $filters | |
int | null | $timestart | |
string | null | $logtablealias |
array |
|
staticprotected |
Register a bigbluebuttonbn event from an instance.
instance | $instance | |
string | $event | |
array | $overrides | |
string | null | $meta |
bool |
|
static |
Log an event callback.
instance | $instance | |
array | $overrides | |
array | $meta |
int | The new count of callback events |
|
static |
Log an event summary event.
instance | $instance | |
array | $overrides | |
array | $meta |
|
static |
Log that an instance was created.
Note: This event cannot take the instance class as it is typically called before the cm has been configured.
stdClass | $instancedata |
|
static |
Log an instance deleted event.
instance | $instance |
|
static |
Log that an instance was updated.
instance | $instance |
|
static |
Log that an instance was viewed.
instance | $instance |
|
static |
Log the events for when a meeting was ended.
instance | $instance |
|
static |
Log the relevant events for when a meeting was joined.
instance | $instance | |
int | $origin |
|
static |
Log the relevant events for when a user left a meeting.
instance | $instance |
|
staticprotected |
Helper register a bigbluebuttonbn event.
instance | $instance | |
string | $type | |
array | $options | [timecreated, userid, other] |
|
static |
Log the relevant events for when a recording has been played.
instance | $instance | |
int | $rid | RecordID |
|
staticprotected |
Register a bigbluebuttonbn event from raw data.
string | $event | |
int | $instanceid | |
int | $courseid | |
string | $meetingid | |
array | $overrides | |
string | null | $meta |
bool |
string const mod_bigbluebuttonbn\logger::EVENT_IMPORT_MIGRATED = 'import-migrated' |
This is a specific log to mark this log as upgraded: used only in the upgrade process from 2.4.
Note: Migrated event name change: once a log has been migrated we mark it as migrated by changing its log name. This will help to recover manually if we have an issue in the migration process.
const mod_bigbluebuttonbn\logger::LOG_TO_STRING |
Log event to string that can be internationalised via get_string.