Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Public Member Functions | |
allow_recording_start_stop () | |
Whether recording can be started and stopped. | |
before_start_time () | |
Whether the current time is before the scheduled start time. | |
can_import_recordings () | |
Whether this instance can import recordings from another instance. | |
can_join () | |
Whether this user can join the conference. | |
can_manage_recordings () | |
Whether this user can manage recordings. | |
can_perform_on_recordings ($action) | |
Whether this user can publish/unpublish/protect/unprotect/delete recordings. | |
does_current_user_count_towards_user_limit () | |
Check whether the current user counts towards the user limit. | |
get_cm () | |
Get the cm_info object for the instance. | |
get_cm_id () | |
Get the id of the course module. | |
get_context () | |
Get the context. | |
get_context_id () | |
Get the context ID of the module context. | |
get_course () | |
Get the course object for the instance. | |
get_course_context () | |
Get the course context. | |
get_course_id () | |
Get the course id of the course that the instance is in. | |
get_course_url () | |
Get the URL used to access the course that the instance is in. | |
get_current_user_password () | |
Get the appropriate password for the current user. | |
get_current_user_role () | |
Get the appropriate designated role for the current user. | |
get_enabled_features () | |
Get the list of enabled features for this instance. | |
get_group_id () | |
Get the current groupid if set. | |
get_group_name () | |
Get the group name for the current group, if a group has been set. | |
get_guest_access_password () | |
Get current meeting password. | |
get_guest_access_url () | |
Get current guest link url. | |
get_import_url () | |
Get the URL used for the import page. | |
get_instance_data () | |
Get the big blue button instance data. | |
get_instance_id () | |
Get the instance id. | |
get_instance_var (string $name) | |
Helper to get an instance var. | |
get_join_url () | |
Get the URL used to join a meeting. | |
get_logout_url () | |
Get the logout URL used to log out of the meeting. | |
get_meeting_description (bool $rewritepluginfileurls=false) | |
Get the meeting description with the pluginfile URLs optionally rewritten. | |
get_meeting_event_notification_url () | |
Get the URL that the remote server will use to notify of meeting events. | |
get_meeting_id (?int $groupid=null) | |
Get the meeting id for this meeting. | |
get_meeting_name () | |
Get the name of the meeting, considering any group if set. | |
get_moderator_password () | |
Get the moderator password. | |
get_mute_on_start () | |
Whether participants are muted on entry. | |
get_origin_data () | |
Get information about the origin. | |
get_participant_list () | |
Get the participant list for the session. | |
get_presentation () | |
Get the presentation data for internal use. | |
get_presentation_for_bigbluebutton_upload () | |
Get the presentation data for external API url. | |
get_record_ready_url () | |
Get the URL that the remote server will use to notify that the recording is ready. | |
get_recordings (array $excludedid=[], bool $viewdeleted=false) | |
Get recordings for this instance. | |
get_recordings_imported () | |
Get recordings_imported from instancedata. | |
get_type () | |
Get the meeting type if set. | |
get_user () | |
Get the user. | |
get_user_fullname () | |
Get the fullname of the current user. | |
get_user_id () | |
Get the id of the user. | |
get_user_limit () | |
Get the configured user limit. | |
get_view_url () | |
Get the URL used to view the instance as a user. | |
get_viewer_password () | |
Get the viewer password. | |
get_voice_bridge () | |
Get the voice bridge details. | |
get_welcome_message () | |
Get the welcome message to display. | |
has_ended () | |
Whether the meeting time has passed. | |
has_user_limit_been_reached (int $currentusercount) | |
Check whether the user limit has been reached. | |
is_admin () | |
Whether the current user is an administrator. | |
is_blindside_network_server () | |
Whether this is a server belonging to blindside networks. | |
is_currently_open () | |
Whether this session is currently open. | |
is_feature_enabled (string $feature) | |
Check whetherthe named features is enabled. | |
is_guest_allowed () | |
Is guest access allowed in this instance. | |
is_moderator () | |
Whether the user is a session moderator. | |
is_moderator_approval_required () | |
Moderator approval required ? | |
is_profile_picture_enabled () | |
Is this meeting configured to display avatars of the users ? | |
is_recorded () | |
Whether this instance is recorded. | |
is_type_recordings_only () | |
Whether this instance is one that only includes recordings. | |
is_type_room_and_recordings () | |
Whether this instance is includes both a room, and recordings. | |
is_type_room_only () | |
Whether this instance is one that only includes a room. | |
set_group_id (int $groupid) | |
Set the current group id of the activity. | |
should_record () | |
Check if meeting is recorded. | |
should_record_from_start () | |
Whether this instance is recorded from the start. | |
should_show_recording_button () | |
Whether to show the recording button. | |
user_can_end_meeting () | |
Whether the user can end a meeting. | |
user_can_force_join () | |
Whether the user can force join in all cases. | |
user_has_group_access ($user, $groupid) | |
Check if this is a valid group for this user/instance,. | |
user_must_wait_to_join () | |
Whether the user must wait to join the session. | |
uses_groups () | |
Check whether this instance is configured to use a group. | |
Static Public Member Functions | |
static | get_all_instances_in_course (int $courseid) |
Get all instances in the specified course. | |
static | get_from_cmid (int $cmid) |
Get the instance information from a cmid. | |
static | get_from_instanceid (int $instanceid) |
Get the instance information from an instance id. | |
static | get_from_meetingid (string $meetingid) |
Get the instance information from a meetingid. | |
static | get_group_instance_from_instance (self $originalinstance, int $groupid) |
Get a group instance of the specified instance. | |
static | parse_meetingid (string $meetingid) |
Parse a meetingID for key data. | |
Protected Member Functions | |
do_get_presentation_with_nonce (bool $withnonce) | |
Generate Presentation URL. | |
Protected Attributes | |
cm_info | $cm |
The cm_info object relating to the instance. | |
int | $cmid |
The course module id. | |
context | $context |
The current context. | |
stdClass | $course |
The course that the instance is in. | |
int | $groupid |
The current groupid if set. | |
stdClass | $instancedata |
The instance data for the instance. | |
array | $participantlist |
The list of participants. | |
mod_bigbluebuttonbn\instance::allow_recording_start_stop | ( | ) |
Whether recording can be started and stopped.
bool |
mod_bigbluebuttonbn\instance::before_start_time | ( | ) |
Whether the current time is before the scheduled start time.
bool |
mod_bigbluebuttonbn\instance::can_import_recordings | ( | ) |
Whether this instance can import recordings from another instance.
bool |
mod_bigbluebuttonbn\instance::can_join | ( | ) |
Whether this user can join the conference.
This checks the user right for access against capabilities and group membership
bool |
mod_bigbluebuttonbn\instance::can_manage_recordings | ( | ) |
Whether this user can manage recordings.
bool |
mod_bigbluebuttonbn\instance::can_perform_on_recordings | ( | $action | ) |
Whether this user can publish/unpublish/protect/unprotect/delete recordings.
string | $action |
bool |
|
protected |
Generate Presentation URL.
bool | $withnonce | The generated url will have a nonce included |
array|null |
mod_bigbluebuttonbn\instance::does_current_user_count_towards_user_limit | ( | ) |
Check whether the current user counts towards the user limit.
bool |
|
static |
Get all instances in the specified course.
int | $courseid |
self[] |
mod_bigbluebuttonbn\instance::get_cm | ( | ) |
mod_bigbluebuttonbn\instance::get_cm_id | ( | ) |
Get the id of the course module.
int |
mod_bigbluebuttonbn\instance::get_context | ( | ) |
Get the context.
context_module |
mod_bigbluebuttonbn\instance::get_context_id | ( | ) |
Get the context ID of the module context.
int |
mod_bigbluebuttonbn\instance::get_course | ( | ) |
Get the course object for the instance.
stdClass |
mod_bigbluebuttonbn\instance::get_course_context | ( | ) |
Get the course context.
context_course |
mod_bigbluebuttonbn\instance::get_course_id | ( | ) |
Get the course id of the course that the instance is in.
int |
mod_bigbluebuttonbn\instance::get_course_url | ( | ) |
Get the URL used to access the course that the instance is in.
moodle_url |
mod_bigbluebuttonbn\instance::get_current_user_password | ( | ) |
Get the appropriate password for the current user.
string |
mod_bigbluebuttonbn\instance::get_current_user_role | ( | ) |
Get the appropriate designated role for the current user.
string |
mod_bigbluebuttonbn\instance::get_enabled_features | ( | ) |
Get the list of enabled features for this instance.
array |
|
static |
Get the instance information from a cmid.
int | $cmid |
null|self |
|
static |
Get the instance information from an instance id.
int | $instanceid | The id from the bigbluebuttonbn table |
null|self |
|
static |
Get the instance information from a meetingid.
If a group is specified in the meetingid then this will also be set.
string | $meetingid |
null|self |
mod_bigbluebuttonbn\instance::get_group_id | ( | ) |
Get the current groupid if set.
int |
|
static |
Get a group instance of the specified instance.
self | $originalinstance | |
int | $groupid |
null|self |
mod_bigbluebuttonbn\instance::get_group_name | ( | ) |
Get the group name for the current group, if a group has been set.
null|string |
mod_bigbluebuttonbn\instance::get_guest_access_password | ( | ) |
Get current meeting password.
string |
mod_bigbluebuttonbn\instance::get_guest_access_url | ( | ) |
Get current guest link url.
moodle_url |
mod_bigbluebuttonbn\instance::get_import_url | ( | ) |
Get the URL used for the import page.
moodle_url |
mod_bigbluebuttonbn\instance::get_instance_data | ( | ) |
Get the big blue button instance data.
stdClass |
mod_bigbluebuttonbn\instance::get_instance_id | ( | ) |
Get the instance id.
int |
mod_bigbluebuttonbn\instance::get_instance_var | ( | string | $name | ) |
Helper to get an instance var.
string | $name |
mixed|null |
mod_bigbluebuttonbn\instance::get_join_url | ( | ) |
Get the URL used to join a meeting.
moodle_url |
mod_bigbluebuttonbn\instance::get_logout_url | ( | ) |
Get the logout URL used to log out of the meeting.
moodle_url |
mod_bigbluebuttonbn\instance::get_meeting_description | ( | bool | $rewritepluginfileurls = false | ) |
Get the meeting description with the pluginfile URLs optionally rewritten.
bool | $rewritepluginfileurls |
string |
mod_bigbluebuttonbn\instance::get_meeting_event_notification_url | ( | ) |
Get the URL that the remote server will use to notify of meeting events.
moodle_url |
mod_bigbluebuttonbn\instance::get_meeting_id | ( | ?int | $groupid = null | ) |
Get the meeting id for this meeting.
null | int | $groupid |
string |
mod_bigbluebuttonbn\instance::get_meeting_name | ( | ) |
Get the name of the meeting, considering any group if set.
string |
mod_bigbluebuttonbn\instance::get_moderator_password | ( | ) |
Get the moderator password.
string |
mod_bigbluebuttonbn\instance::get_mute_on_start | ( | ) |
Whether participants are muted on entry.
bool |
mod_bigbluebuttonbn\instance::get_origin_data | ( | ) |
Get information about the origin.
stdClass |
mod_bigbluebuttonbn\instance::get_participant_list | ( | ) |
Get the participant list for the session.
array |
mod_bigbluebuttonbn\instance::get_presentation | ( | ) |
Get the presentation data for internal use.
The URL returned for the presentation will be accessible through moodle with checks about user being logged in.
array|null |
mod_bigbluebuttonbn\instance::get_presentation_for_bigbluebutton_upload | ( | ) |
Get the presentation data for external API url.
The URL returned for the presentation will be accessible publicly but once and with a specific URL.
array|null |
mod_bigbluebuttonbn\instance::get_record_ready_url | ( | ) |
Get the URL that the remote server will use to notify that the recording is ready.
moodle_url |
mod_bigbluebuttonbn\instance::get_recordings | ( | array | $excludedid = [], |
bool | $viewdeleted = false ) |
Get recordings for this instance.
string[] | $excludedid | |
bool | $viewdeleted | view deleted recordings ? |
recording[] |
mod_bigbluebuttonbn\instance::get_recordings_imported | ( | ) |
Get recordings_imported from instancedata.
bool |
mod_bigbluebuttonbn\instance::get_type | ( | ) |
Get the meeting type if set.
null|string |
mod_bigbluebuttonbn\instance::get_user | ( | ) |
Get the user.
stdClass |
mod_bigbluebuttonbn\instance::get_user_fullname | ( | ) |
Get the fullname of the current user.
string |
mod_bigbluebuttonbn\instance::get_user_id | ( | ) |
Get the id of the user.
int |
mod_bigbluebuttonbn\instance::get_user_limit | ( | ) |
Get the configured user limit.
int |
mod_bigbluebuttonbn\instance::get_view_url | ( | ) |
Get the URL used to view the instance as a user.
moodle_url |
mod_bigbluebuttonbn\instance::get_viewer_password | ( | ) |
Get the viewer password.
string |
mod_bigbluebuttonbn\instance::get_voice_bridge | ( | ) |
Get the voice bridge details.
null|int |
mod_bigbluebuttonbn\instance::get_welcome_message | ( | ) |
Get the welcome message to display.
string |
mod_bigbluebuttonbn\instance::has_ended | ( | ) |
Whether the meeting time has passed.
bool |
mod_bigbluebuttonbn\instance::has_user_limit_been_reached | ( | int | $currentusercount | ) |
Check whether the user limit has been reached.
int | $currentusercount | The user count to check |
bool |
mod_bigbluebuttonbn\instance::is_admin | ( | ) |
Whether the current user is an administrator.
bool |
mod_bigbluebuttonbn\instance::is_blindside_network_server | ( | ) |
Whether this is a server belonging to blindside networks.
bool |
mod_bigbluebuttonbn\instance::is_currently_open | ( | ) |
Whether this session is currently open.
bool |
mod_bigbluebuttonbn\instance::is_feature_enabled | ( | string | $feature | ) |
Check whetherthe named features is enabled.
string | $feature |
bool |
mod_bigbluebuttonbn\instance::is_guest_allowed | ( | ) |
Is guest access allowed in this instance.
bool |
mod_bigbluebuttonbn\instance::is_moderator | ( | ) |
Whether the user is a session moderator.
bool |
mod_bigbluebuttonbn\instance::is_moderator_approval_required | ( | ) |
Moderator approval required ?
By default we leave it as false as "ALWAYS_ACCEPT" is the default value for the guestPolicy create parameter (https://docs.bigbluebutton.org/dev/api.html)
bool |
mod_bigbluebuttonbn\instance::is_profile_picture_enabled | ( | ) |
Is this meeting configured to display avatars of the users ?
Note: this is for now a global setting.
bool |
mod_bigbluebuttonbn\instance::is_recorded | ( | ) |
Whether this instance is recorded.
bool |
mod_bigbluebuttonbn\instance::is_type_recordings_only | ( | ) |
Whether this instance is one that only includes recordings.
bool |
mod_bigbluebuttonbn\instance::is_type_room_and_recordings | ( | ) |
Whether this instance is includes both a room, and recordings.
bool |
mod_bigbluebuttonbn\instance::is_type_room_only | ( | ) |
Whether this instance is one that only includes a room.
bool |
|
static |
Parse a meetingID for key data.
string | $meetingid |
array |
moodle_exception |
mod_bigbluebuttonbn\instance::set_group_id | ( | int | $groupid | ) |
Set the current group id of the activity.
int | $groupid |
mod_bigbluebuttonbn\instance::should_record | ( | ) |
Check if meeting is recorded.
bool |
mod_bigbluebuttonbn\instance::should_record_from_start | ( | ) |
Whether this instance is recorded from the start.
bool |
mod_bigbluebuttonbn\instance::should_show_recording_button | ( | ) |
Whether to show the recording button.
bool |
mod_bigbluebuttonbn\instance::user_can_end_meeting | ( | ) |
Whether the user can end a meeting.
bool |
mod_bigbluebuttonbn\instance::user_can_force_join | ( | ) |
Whether the user can force join in all cases.
bool |
mod_bigbluebuttonbn\instance::user_has_group_access | ( | $user, | |
$groupid ) |
Check if this is a valid group for this user/instance,.
stdClass | $user | |
int | $groupid |
bool |
mod_bigbluebuttonbn\instance::user_must_wait_to_join | ( | ) |
Whether the user must wait to join the session.
bool |
mod_bigbluebuttonbn\instance::uses_groups | ( | ) |
Check whether this instance is configured to use a group.
bool |