Example tab class.
More...
|
| add_data (array $data) |
| Add custom data to the tab data attributes.
|
|
| export_for_template (renderer_base $output) |
| Export this for use in a mustache template context.
|
|
| get_data () |
| Return tab data attributes.
|
|
| get_tab_id () |
| HTML "id" attribute that should be used for this tab, by default the last part of class name.
|
|
| get_tab_label () |
| The label to be displayed on the tab.
|
|
| get_template () |
| Template to use to display tab contents.
|
|
| is_available () |
| Check permission of the current user to access this tab.
|
|
| require_access () |
| Check that tab is accessible, throw exception otherwise - used from WS requesting tab contents.
|
|
◆ add_data()
core\output\dynamic_tabs\base::add_data |
( |
array | $data | ) |
|
|
inherited |
Add custom data to the tab data attributes.
- Parameters
-
◆ export_for_template()
tool_componentlibrary\local\examples\dynamictabs\tab2::export_for_template |
( |
renderer_base | $output | ) |
|
Export this for use in a mustache template context.
- Parameters
-
- Return values
-
Implements templatable.
◆ get_data()
core\output\dynamic_tabs\base::get_data |
( |
| ) |
|
|
inherited |
Return tab data attributes.
- Return values
-
◆ get_tab_id()
core\output\dynamic_tabs\base::get_tab_id |
( |
| ) |
|
|
inherited |
HTML "id" attribute that should be used for this tab, by default the last part of class name.
- Return values
-
◆ get_tab_label()
tool_componentlibrary\local\examples\dynamictabs\tab2::get_tab_label |
( |
| ) |
|
◆ get_template()
tool_componentlibrary\local\examples\dynamictabs\tab2::get_template |
( |
| ) |
|
◆ is_available()
tool_componentlibrary\local\examples\dynamictabs\tab2::is_available |
( |
| ) |
|
◆ require_access()
core\output\dynamic_tabs\base::require_access |
( |
| ) |
|
|
finalinherited |
Check that tab is accessible, throw exception otherwise - used from WS requesting tab contents.
- Exceptions
-
The documentation for this class was generated from the following file:
- admin/tool/componentlibrary/classes/local/examples/dynamictabs/tab2.php