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

Defines 1 class

base:: (5 methods):
  __construct()
  get_tab_id()
  require_access()
  get_data()
  add_data()


Class: base  - X-Ref

Class tab_base

__construct(array $data)   X-Ref
tab constructor.

param: array $data

get_tab_id()   X-Ref
HTML "id" attribute that should be used for this tab, by default the last part of class name

return: string

require_access()   X-Ref
Check that tab is accessible, throw exception otherwise - used from WS requesting tab contents


get_data()   X-Ref
Return tab data attributes

return: array

add_data(array $data)   X-Ref
Add custom data to the tab data attributes

param: array $data