Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Static Public Member Functions | |
static | create_meeting (array $data, array $metadata, ?string $presentationname=null, ?string $presentationurl=null, ?int $instanceid=null) |
Create a Meeting. | |
static | end_meeting (string $meetingid, string $modpw, ?int $instanceid=null) |
Perform end meeting on BBB. | |
static | enqueue_completion_event (stdClass $bigbluebuttonbn, int $userid) |
Helper function enqueues one user for being validated as for completion. | |
static | get_checksum (string $action, string $params) |
Get checksum. | |
static | get_guest_join_url (instance $instance, ?string $createtime, string $username) |
Builds and returns a url for joining a BigBlueButton meeting. | |
static | get_instance_ownerid (stdClass $bigbluebuttonbn) |
Helper for getting the owner userid of a bigbluebuttonbn instance. | |
static | get_instance_profiles_array (array $profiles=[]) |
Helper function returns an array with the profiles (with features per profile) for the different types of bigbluebuttonbn instances. | |
static | get_instance_type_profiles () |
Helper function returns an array with the profiles (with features per profile) for the different types of bigbluebuttonbn instances. | |
static | get_instance_type_profiles_create_allowed (bool $room, bool $recording) |
Helper function returns an array with the profiles (with features per profile) for the different types of bigbluebuttonbn instances that the user is allowed to create. | |
static | get_join_url (instance $instance, ?string $createtime) |
Builds and returns a url for joining a BigBlueButton meeting. | |
static | get_meeting_info (string $meetingid, ?int $instanceid=null) |
Get meeting info for a given meeting id. | |
static | get_poll_interval () |
Get the poll interval as it is set in the configuration. | |
static | get_server_not_available_message (instance $instance) |
Get message when server not available. | |
static | get_server_not_available_url (instance $instance) |
Get URL to the page displaying that the server is not available. | |
static | get_server_version () |
Perform api request on BBB. | |
static | handle_server_not_available (instance $instance) |
Handle the server not being available. | |
static | is_bn_server () |
Helper evaluates if the bigbluebutton server used belongs to blindsidenetworks domain. | |
static | is_remote_resource_valid (string $url) |
Helper function validates a remote resource. | |
static | is_voicebridge_number_unique (int $instance, int $voicebridge) |
Helper evaluates if a voicebridge number is unique. | |
static | require_working_server (instance $instance) |
Ensure that the remote server was contactable. | |
static | update_completion_state (stdClass $bigbluebuttonbn, int $userid) |
Helper function enqueues completion trigger. | |
static | view_get_activity_status (instance $instance) |
Return the status of an activity [open|not_started|ended]. | |
Public Attributes | |
const | BBB_TO_MOODLE_ERROR_CODE |
Sometimes the server sends back some error and errorKeys that can be converted to Moodle error messages. | |
const | DEFAULT_POLL_INTERVAL = 5 |
Default poll interval for remote bigbluebutton server in seconds. | |
const | MIN_POLL_INTERVAL = 2 |
Minimum poll interval for remote bigbluebutton server in seconds. | |
Static Protected Member Functions | |
static | action_url (string $action='', array $data=[], array $metadata=[], ?int $instanceid=null) |
Returns the right URL for the action specified. | |
static | assert_returned_xml ($xml, ?array $additionaldetails=null) |
Throw an exception if there is a problem in the returned XML value. | |
static | fetch_endpoint_xml (string $action, array $data=[], array $metadata=[], ?int $instanceid=null) |
Fetch the XML from an endpoint and test for success. | |
static | sanitized_secret () |
Makes sure the shared_secret used doesn't have trailing white characters. | |
static | sanitized_url () |
Makes sure the url used doesn't is in the format required. | |
|
staticprotectedinherited |
Returns the right URL for the action specified.
string | $action | |
array | $data | |
array | $metadata | |
int | null | $instanceid |
string |
|
staticprotectedinherited |
Throw an exception if there is a problem in the returned XML value.
SimpleXMLElement | bool | $xml | |
array | null | $additionaldetails |
bigbluebutton_exception | |
server_not_available_exception |
|
static |
Create a Meeting.
array | $data | |
array | $metadata | |
string | null | $presentationname | |
string | null | $presentationurl | |
int | null | $instanceid |
array |
bigbluebutton_exception |
|
static |
Perform end meeting on BBB.
string | $meetingid | |
string | $modpw | |
int | null | $instanceid |
|
static |
Helper function enqueues one user for being validated as for completion.
stdClass | $bigbluebuttonbn | |
int | $userid |
void |
|
staticprotectedinherited |
Fetch the XML from an endpoint and test for success.
If the result could not be loaded, or the returncode was not 'SUCCESS', a null value is returned.
string | $action | |
array | $data | |
array | $metadata | |
int | null | $instanceid |
null|bool|SimpleXMLElement |
|
staticinherited |
Get checksum.
string | $action | |
string | $params |
string |
|
static |
Builds and returns a url for joining a BigBlueButton meeting.
instance | $instance | |
string | null | $createtime | |
string | $username |
string |
|
static |
Helper for getting the owner userid of a bigbluebuttonbn instance.
stdClass | $bigbluebuttonbn | BigBlueButtonBN instance |
int | ownerid (a valid user id or null if not registered/found) |
|
static |
Helper function returns an array with the profiles (with features per profile) for the different types of bigbluebuttonbn instances.
array | $profiles |
array |
|
static |
Helper function returns an array with the profiles (with features per profile) for the different types of bigbluebuttonbn instances.
array |
|
static |
Helper function returns an array with the profiles (with features per profile) for the different types of bigbluebuttonbn instances that the user is allowed to create.
bool | $room | |
bool | $recording |
array |
|
static |
Builds and returns a url for joining a BigBlueButton meeting.
instance | $instance | |
string | null | $createtime |
string |
|
static |
Get meeting info for a given meeting id.
string | $meetingid | |
int | null | $instanceid |
array |
|
static |
Get the poll interval as it is set in the configuration.
If configuration value is under the threshold of {
int | the poll interval in seconds |
|
static |
Get message when server not available.
instance | $instance |
string |
|
static |
Get URL to the page displaying that the server is not available.
instance | $instance |
string |
|
static |
Perform api request on BBB.
null|string |
|
static |
Handle the server not being available.
instance | $instance |
|
static |
Helper evaluates if the bigbluebutton server used belongs to blindsidenetworks domain.
bool |
|
static |
Helper function validates a remote resource.
string | $url |
bool |
|
static |
Helper evaluates if a voicebridge number is unique.
int | $instance | |
int | $voicebridge |
bool |
|
static |
Ensure that the remote server was contactable.
instance | $instance |
|
staticprotectedinherited |
Makes sure the shared_secret used doesn't have trailing white characters.
string |
|
staticprotectedinherited |
Makes sure the url used doesn't is in the format required.
string |
|
static |
Helper function enqueues completion trigger.
stdClass | $bigbluebuttonbn | |
int | $userid |
void |
|
static |
Return the status of an activity [open|not_started|ended].
instance | $instance |
string |
|
inherited |
Sometimes the server sends back some error and errorKeys that can be converted to Moodle error messages.