Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Namespaces | |
namespace | mod_bigbluebuttonbn |
| |
namespace | mod_bigbluebuttonbn\analytics\indicator |
| |
namespace | mod_bigbluebuttonbn\completion |
| |
namespace | mod_bigbluebuttonbn\event |
| |
namespace | mod_bigbluebuttonbn\external |
| |
namespace | mod_bigbluebuttonbn\form |
| |
namespace | mod_bigbluebuttonbn\local |
| |
namespace | mod_bigbluebuttonbn\local\bigbluebutton\recordings |
| |
namespace | mod_bigbluebuttonbn\local\exceptions |
| |
namespace | mod_bigbluebuttonbn\local\extension |
| |
namespace | mod_bigbluebuttonbn\local\helpers |
| |
namespace | mod_bigbluebuttonbn\local\plugins |
| |
namespace | mod_bigbluebuttonbn\local\proxy |
| |
namespace | mod_bigbluebuttonbn\output |
| |
namespace | mod_bigbluebuttonbn\plugininfo |
| |
namespace | mod_bigbluebuttonbn\privacy |
| |
namespace | mod_bigbluebuttonbn\search |
| |
namespace | mod_bigbluebuttonbn\task |
| |
namespace | mod_bigbluebuttonbn\test |
| |
Functions | |
bigbluebuttonbn_add_instance ($bigbluebuttonbn) | |
Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will create a new instance and return the id number of the new instance. | |
bigbluebuttonbn_check_updates_since (cm_info $cm, $from, $filter=[]) | |
Check if the module has any update that affects the current user since a given time. | |
bigbluebuttonbn_course_backend_generator_create_activity (tool_generator_course_backend $backend, testing_data_generator $generator, int $courseid, int $number) | |
Creates a number of BigblueButtonBN activities. | |
bigbluebuttonbn_delete_instance ($id) | |
Given an ID of an instance of this module, this function will permanently delete the instance and any data that depends on it. | |
bigbluebuttonbn_extend_settings_navigation (settings_navigation $settingsnav, navigation_node $nodenav) | |
Adds module specific settings to the settings block. | |
bigbluebuttonbn_get_completion_aggregation_state () | |
This flags this module with the capability to override the completion status with the custom completion rules. | |
bigbluebuttonbn_get_coursemodule_info ($coursemodule) | |
Given a course_module object, this function returns any "extra" information that may be needed when printing this activity in a course listing. | |
bigbluebuttonbn_get_extra_capabilities () | |
Returns all other caps used in module. | |
bigbluebuttonbn_get_recent_mod_activity (&$activities, &$index, $timestart, $courseid, $cmid, $userid=0, $groupid=0) | |
Returns all events since a given time in specified bigbluebutton activity. | |
bigbluebuttonbn_inplace_editable ($itemtype, $itemid, $newvalue) | |
In place editable for the recording table. | |
bigbluebuttonbn_is_branded () | |
Whether the activity is branded. | |
bigbluebuttonbn_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=[]) | |
Serves the bigbluebuttonbn attachments. | |
bigbluebuttonbn_print_recent_activity (object $course, bool $viewfullnames, int $timestart) | |
Given a course and a date, prints a summary of all the activity for this module. | |
bigbluebuttonbn_print_recent_mod_activity (stdClass $activity, int $courseid, bool $detail, array $modnames, bool $viewfullnames) | |
Outputs the bigbluebutton logs indicated by $activity. | |
bigbluebuttonbn_reset_course_form_defaults (stdClass $course) | |
Course reset form defaults. | |
bigbluebuttonbn_reset_course_form_definition (&$mform) | |
Called by course/reset.php. | |
bigbluebuttonbn_reset_userdata (stdClass $data) | |
This function is used by the reset_course_userdata function in moodlelib. | |
bigbluebuttonbn_supports ($feature) | |
Indicates API features that the bigbluebuttonbn supports. | |
bigbluebuttonbn_update_instance ($bigbluebuttonbn) | |
Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will update an existing instance with new data. | |
bigbluebuttonbn_user_complete (stdClass $course, stdClass $user, cm_info $mod, stdClass $bigbluebuttonbn) | |
Print a detailed representation of what a user has done with a given particular instance of this module, for user activity reports. | |
bigbluebuttonbn_user_outline (stdClass $course, stdClass $user, cm_info $mod, stdClass $bigbluebuttonbn) | |
Return a small object with summary information about what a user has done with a given particular instance of this module Used for user activity reports. | |
bigbluebuttonbn_view ($bigbluebuttonbn, $course, $cm, $context) | |
Mark the activity completed (if required) and trigger the course_module_viewed event. | |
mod_bigbluebuttonbn\test::create_activity_with_recordings (stdClass $course, int $type, array $recordingdata, int $groupid=0) | |
Create an activity which includes a set of recordings. | |
mod_bigbluebuttonbn\test::create_from_dataset (array $dataset) | |
Create a course, users and recording from dataset given in an array form. | |
mod_bigbluebuttonbn\test::create_instance (?stdClass $course=null, array $params=[], array $options=[]) | |
Convenience function to create an instance of a bigbluebuttonactivty. | |
mod_bigbluebuttonbn\test::create_log_entries (instance $instance, int $userid, int $count=30, bool $importedrecordings=false, bool $withremoterecordings=true) | |
Create the legacy log entries for this task. | |
mod_bigbluebuttonbn\test::create_recordings_for_instance (instance $instance, array $recordingdata=[], $additionalmeetingdata=[]) | |
Create an return an array of recordings. | |
mod_bigbluebuttonbn\test::get_course () | |
Get or create course if it does not exist. | |
mod_bigbluebuttonbn\test::get_form_data_from_instance (stdClass $bbactivity, ?stdClass $course=null) | |
Get the matching form data. | |
mod_bigbluebuttonbn\test::initialise_mock_server () | |
This test requires mock server to be present. | |
mod_bigbluebuttonbn_core_calendar_is_event_visible (calendar_event $event) | |
Is the event visible? | |
mod_bigbluebuttonbn_core_calendar_provide_event_action (calendar_event $event, action_factory $factory) | |
This function receives a calendar event and returns the action associated with it, or null if there is none. | |
mod_bigbluebuttonbn\test::setup_course_students_teachers (stdClass $courserecord, int $numstudents, int $numteachers, int $groupsnum) | |
Generate a course, several students and several groups. | |
xmldb_bigbluebuttonbn_add_change_field (database_manager $dbman, string $tablename, string $fieldname, array $fielddefinition) | |
Generic helper function for adding or changing a field in a table. | |
xmldb_bigbluebuttonbn_index_table (database_manager $dbman, string $tablename, string $indexname, array $indexfields, $indextype=XMLDB_INDEX_NOTUNIQUE) | |
Generic helper function for adding index to a table. | |
xmldb_bigbluebuttonbn_install () | |
Perform the post-install procedures. | |
xmldb_bigbluebuttonbn_upgrade ($oldversion=0) | |
Performs data migrations and updates on upgrade. | |
Variables | |
$addons | |
$bbbsettings = new mod_bigbluebuttonbn\settings($ADMIN, $module, $section, $hassiteconfig) | |
$capabilities | |
global | $CFG |
global | $CFG |
global | $CFG |
global | $CFG |
global | mod_bigbluebuttonbn::$CFG |
global | mod_bigbluebuttonbn\form::$CFG |
global | mod_bigbluebuttonbn\local\plugins::$CFG |
global | mod_bigbluebuttonbn\local\proxy::$CFG |
global | mod_bigbluebuttonbn\output::$CFG |
object null | mod_bigbluebuttonbn\test::$course = null |
global | $DB |
$definitions | |
$functions | |
$logs | |
$messageproviders | |
$plugin = 2024041600 | |
$settings = null | |
$tasks | |
return new | bbb_coverage |
$plugin | component = 'mod_bigbluebuttonbn' |
trait | mod_bigbluebuttonbn\test::testcase_helper_trait |
$plugin | version = 2024042200 |
bigbluebuttonbn_add_instance | ( | $bigbluebuttonbn | ) |
Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will create a new instance and return the id number of the new instance.
stdClass | $bigbluebuttonbn | An object from the form in mod_form.php |
int | The id of the newly inserted bigbluebuttonbn record |
bigbluebuttonbn_check_updates_since | ( | cm_info | $cm, |
$from, | |||
$filter = [] ) |
Check if the module has any update that affects the current user since a given time.
cm_info | $cm | course module data |
int | $from | the time to check updates from |
array | $filter | if we need to check only specific updates |
stdClass | an object with the different type of areas indicating if they were updated or not |
bigbluebuttonbn_course_backend_generator_create_activity | ( | tool_generator_course_backend | $backend, |
testing_data_generator | $generator, | ||
int | $courseid, | ||
int | $number ) |
Creates a number of BigblueButtonBN activities.
tool_generator_course_backend | $backend | |
testing_data_generator | $generator | |
int | $courseid | |
int | $number |
void |
bigbluebuttonbn_delete_instance | ( | $id | ) |
Given an ID of an instance of this module, this function will permanently delete the instance and any data that depends on it.
int | $id | Id of the module instance |
bool | Success/Failure |
bigbluebuttonbn_extend_settings_navigation | ( | settings_navigation | $settingsnav, |
navigation_node | $nodenav ) |
Adds module specific settings to the settings block.
settings_navigation | $settingsnav | The settings navigation object |
navigation_node | $nodenav | The node to add module settings to |
bigbluebuttonbn_get_completion_aggregation_state | ( | ) |
This flags this module with the capability to override the completion status with the custom completion rules.
int |
bigbluebuttonbn_get_coursemodule_info | ( | $coursemodule | ) |
Given a course_module object, this function returns any "extra" information that may be needed when printing this activity in a course listing.
See get_array_of_activities() in course/lib.php.
stdClass | $coursemodule |
null|cached_cm_info |
bigbluebuttonbn_get_extra_capabilities | ( | ) |
Returns all other caps used in module.
string[] |
bigbluebuttonbn_get_recent_mod_activity | ( | & | $activities, |
& | $index, | ||
$timestart, | |||
$courseid, | |||
$cmid, | |||
$userid = 0, | |||
$groupid = 0 ) |
Returns all events since a given time in specified bigbluebutton activity.
We focus here on the two events: play and join.
array | $activities | |
int | $index | |
int | $timestart | |
int | $courseid | |
int | $cmid | |
int | $userid | |
int | $groupid |
array |
bigbluebuttonbn_inplace_editable | ( | $itemtype, | |
$itemid, | |||
$newvalue ) |
In place editable for the recording table.
string | $itemtype | |
string | $itemid | |
mixed | $newvalue |
mixed|null |
bigbluebuttonbn_is_branded | ( | ) |
Whether the activity is branded.
This information is used, for instance, to decide if a filter should be applied to the icon or not.
bool | True if the activity is branded, false otherwise. |
bigbluebuttonbn_pluginfile | ( | $course, | |
$cm, | |||
$context, | |||
$filearea, | |||
$args, | |||
$forcedownload, | |||
array | $options = [] ) |
Serves the bigbluebuttonbn attachments.
Implements needed access control ;-).
stdClass | $course | course object |
stdClass | $cm | course module object |
context | $context | context object |
string | $filearea | file area |
array | $args | extra arguments |
bool | $forcedownload | whether or not force download |
array | $options | additional options affecting the file serving |
false|null | false if file not found, does not return if found - justsend the file |
bigbluebuttonbn_print_recent_activity | ( | object | $course, |
bool | $viewfullnames, | ||
int | $timestart ) |
Given a course and a date, prints a summary of all the activity for this module.
object | $course | |
bool | $viewfullnames | capability |
int | $timestart |
bool | success |
bigbluebuttonbn_print_recent_mod_activity | ( | stdClass | $activity, |
int | $courseid, | ||
bool | $detail, | ||
array | $modnames, | ||
bool | $viewfullnames ) |
Outputs the bigbluebutton logs indicated by $activity.
stdClass | $activity | the activity object the bigbluebuttonbn resides in |
int | $courseid | the id of the course the bigbluebuttonbn resides in |
bool | $detail | not used, but required for compatibilty with other modules |
array | $modnames | not used, but required for compatibilty with other modules |
bool | $viewfullnames | not used, but required for compatibilty with other modules |
bigbluebuttonbn_reset_course_form_defaults | ( | stdClass | $course | ) |
Course reset form defaults.
stdClass | $course |
array |
bigbluebuttonbn_reset_course_form_definition | ( | & | $mform | ) |
Called by course/reset.php.
MoodleQuickForm | $mform |
bigbluebuttonbn_reset_userdata | ( | stdClass | $data | ) |
This function is used by the reset_course_userdata function in moodlelib.
stdClass | $data | the data submitted from the reset course. |
array | status array |
bigbluebuttonbn_supports | ( | $feature | ) |
Indicates API features that the bigbluebuttonbn supports.
string | $feature |
mixed | True if yes (some features may use other values) @uses FEATURE_IDNUMBER @uses FEATURE_GROUPS @uses FEATURE_GROUPINGS @uses FEATURE_GROUPMEMBERSONLY @uses FEATURE_MOD_INTRO @uses FEATURE_BACKUP_MOODLE2 @uses FEATURE_COMPLETION_TRACKS_VIEWS @uses FEATURE_COMPLETION_HAS_RULES @uses FEATURE_GRADE_HAS_GRADE @uses FEATURE_GRADE_OUTCOMES @uses FEATURE_SHOW_DESCRIPTION |
bigbluebuttonbn_update_instance | ( | $bigbluebuttonbn | ) |
Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will update an existing instance with new data.
stdClass | $bigbluebuttonbn | An object from the form in mod_form.php |
bool | Success/Fail |
bigbluebuttonbn_user_complete | ( | stdClass | $course, |
stdClass | $user, | ||
cm_info | $mod, | ||
stdClass | $bigbluebuttonbn ) |
Print a detailed representation of what a user has done with a given particular instance of this module, for user activity reports.
stdClass | $course | |
stdClass | $user | |
cm_info | $mod | |
stdClass | $bigbluebuttonbn |
bigbluebuttonbn_user_outline | ( | stdClass | $course, |
stdClass | $user, | ||
cm_info | $mod, | ||
stdClass | $bigbluebuttonbn ) |
Return a small object with summary information about what a user has done with a given particular instance of this module Used for user activity reports.
stdClass | $course | |
stdClass | $user | |
cm_info | $mod | |
stdClass | $bigbluebuttonbn |
stdClass | with info and time (timestamp of the last log) |
bigbluebuttonbn_view | ( | $bigbluebuttonbn, | |
$course, | |||
$cm, | |||
$context ) |
|
protected |
Create an activity which includes a set of recordings.
stdClass | $course | |
int | $type | |
array | $recordingdata | array of recording information |
int | $groupid |
array |
|
protected |
Create a course, users and recording from dataset given in an array form.
array | $dataset |
mixed |
|
protected |
Convenience function to create an instance of a bigbluebuttonactivty.
stdClass | null | $course | course to add the module to |
array | $params | Array of parameters to pass to the generator |
array | $options | Array of options to pass to the generator |
array($context,$cm,$instance) | Testable wrapper around the assign class. |
|
protected |
Create the legacy log entries for this task.
instance | $instance | |
int | $userid | |
int | $count | |
bool | $importedrecordings | |
bool | $withremoterecordings | create recording on the mock server ? |
array |
|
protected |
Create an return an array of recordings.
instance | $instance | |
array | $recordingdata | array of recording information |
array | $additionalmeetingdata |
array |
|
protected |
Get or create course if it does not exist.
stdClass|null |
|
protected |
Get the matching form data.
stdClass | $bbactivity | the current bigbluebutton activity |
stdClass | null | $course | the course or null (taken from $this->get_course() if null) |
mixed |
mod_bigbluebuttonbn_core_calendar_is_event_visible | ( | calendar_event | $event | ) |
Is the event visible?
calendar_event | $event |
bool | Returns true if the event is visible to the current user, false otherwise. |
mod_bigbluebuttonbn_core_calendar_provide_event_action | ( | calendar_event | $event, |
action_factory | $factory ) |
This function receives a calendar event and returns the action associated with it, or null if there is none.
This is used by block_myoverview in order to display the event appropriately. If null is returned then the event is not displayed on the block.
calendar_event | $event | |
action_factory | $factory |
action_interface|null |
|
protected |
Generate a course, several students and several groups.
stdClass | $courserecord | |
int | $numstudents | |
int | $numteachers | |
int | $groupsnum |
array |
xmldb_bigbluebuttonbn_add_change_field | ( | database_manager | $dbman, |
string | $tablename, | ||
string | $fieldname, | ||
array | $fielddefinition ) |
Generic helper function for adding or changing a field in a table.
database_manager | $dbman | |
string | $tablename | |
string | $fieldname | |
array | $fielddefinition |
xmldb_bigbluebuttonbn_index_table | ( | database_manager | $dbman, |
string | $tablename, | ||
string | $indexname, | ||
array | $indexfields, | ||
$indextype = XMLDB_INDEX_NOTUNIQUE ) |
Generic helper function for adding index to a table.
database_manager | $dbman | |
string | $tablename | |
string | $indexname | |
array | $indexfields | |
string | false | null | $indextype |
xmldb_bigbluebuttonbn_upgrade | ( | $oldversion = 0 | ) |
Performs data migrations and updates on upgrade.
int | $oldversion |
bool |
$addons |
$logs |
$messageproviders |
$tasks |
trait mod_bigbluebuttonbn::test\testcase_helper_trait |