Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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