Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(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