Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 197 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: extension  - X-Ref

Generic subplugin management helper

action_url_addons(string $action = '',array $data = [],array $metadata = [],?int $instanceid = null)   X-Ref
Invoke a subplugin hook that will return additional parameters

param: string $action
param: array $data
param: array $metadata
param: int|null $instanceid
return: array associative array with the additional data and metadata (indexed by 'data' and

get_instances_implementing(string $classname, ?array $newparameters = [])   X-Ref
Get new instance of classes that are named on the base of this classname and implementing this class

param: string $classname
param: array|null $newparameters additional parameters for the constructor.
return: array

get_classes_implementing(string $classname)   X-Ref
Get classes are named on the base of this classname and implementing this class

param: string $classname
return: array

mod_form_addons_instances(\MoodleQuickForm $mform, ?stdClass $bigbluebuttondata = null,string $suffix = null)   X-Ref
Get all mod_form addons classes instances

param: \MoodleQuickForm $mform
param: stdClass|null $bigbluebuttondata
param: string|null $suffix
return: array of custom completion addon classes instances

get_join_tables()   X-Ref
Get additional join tables for instance when extension activated

return: array of additional tables names. They all have a field called bigbluebuttonbnid that identifies the bbb instance.

add_instance(stdClass $data)   X-Ref
Add instance processing

param: stdClass $data data to persist
return: void

update_instance(stdClass $data)   X-Ref
Update instance processing

param: stdClass $data data to persist
return: void

delete_instance(int $id)   X-Ref
Delete instance processing

param: int $id instance id
return: void