TabUtils Class Reference

List of all members.

Static Public Member Functions

static createTab ($text, $href="", $selected="")
static createSubTab ($text, $href="", $selected="")
static createToolboxHeader ($text)
static createToolboxLink ($text, $href)
static clearSubTabs ($id)
static actionTabs (&$skin, &$content_actions)
static clearTabs ($skin, &$content_actions)
static addAction ($text, $href)
static clearActions ()

Static Public Attributes

static $customActions = array()

Member Function Documentation

static TabUtils::addAction ( text,
href 
) [static]

Adds an action to the sub-menu

Parameters:
string $text The visible text of the action
string $href The url of the action
static TabUtils::clearActions (  )  [static]

Clears most of the built in wiki actions of the sub-menu

static TabUtils::createSubTab ( text,
href = "",
selected = "" 
) [static]

Creates and returns a sub-level tab that can be appended to a top level tab in the $tabs global SubTabs can also be appended to the dropdowns of other SubTabs

 $GLOBALS['tabs']['Main']['subtabs'][] = TabUtils::createSubTab("Sub Tab", "{$url}", "$selected");
Parameters:
string $text The text that will show up on the tab
string $href The url that the go to
string $selected Whether the tab is currently selected or not (should be "selected" if true)
Returns:
array The array of tab information ['text', 'href', 'selected', 'dropdown']
static TabUtils::createTab ( text,
href = "",
selected = "" 
) [static]

Creates and returns a top level tab that can be appended to the $tabs global

 $GLOBALS['tabs']['Profile'] = TabUtils::createTab("Top Tab");
Parameters:
string $text The text that will show up on the tab
string $href The url that the go to
string $selected Whether the tab is currently selected or not (should be "selected" if true)
Returns:
array The array of tab information ['id', 'text', 'href', 'selected', 'subtabs']
static TabUtils::createToolboxHeader ( text  )  [static]

Creates and returns a toolbox header that can be appended to the $toolbox global

 $GLOBALS['toolbox']['Other'] = TabUtils::createToolboxHeader("Header");
Parameters:
string $text The text that will show up on the header
Returns:
array The array of header information ['text', 'links']
static TabUtils::createToolboxLink ( text,
href 
) [static]

Creates and returns a toolbox link that can be appended to a header in the $toolbox global

 $GLOBALS['toolbox']['Other'][] = TabUtils::createToolboxLink("Toolbox Link", "{$url}");
Parameters:
string $text The text that will show up on the link
string $href $href The url that the go to
Returns:
array The array of link information ['text', 'href']

The documentation for this class was generated from the following file:

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1