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: 60 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

mod_instance_helper:: (4 methods):
  add_instance()
  update_instance()
  delete_instance()
  get_join_tables()


Class: mod_instance_helper  - X-Ref

Class defining a way to deal with instance save/update/delete in extension

add_instance(stdClass $bigbluebuttonbn)   X-Ref
Runs any processes that must run before a bigbluebuttonbn insert/update.

param: stdClass $bigbluebuttonbn BigBlueButtonBN form data

update_instance(stdClass $bigbluebuttonbn)   X-Ref
Runs any processes that must be run after a bigbluebuttonbn insert/update.

param: stdClass $bigbluebuttonbn BigBlueButtonBN form data

delete_instance(int $cmid)   X-Ref
Runs any processes that must be run after a bigbluebuttonbn delete.

param: int $cmid

get_join_tables()   X-Ref
Get any join table name that is used to store additional data for the instance.

return: string[]