Framework
3.9
|
The TabBar class is a user-interface control that manages a line of tabs for multi-page dialogs. More...
Public Member Functions | |
TabBar ($id, $tabs, $queryString="", $useQueryString=true, $showNumber=false) | |
Construct a new TabBar control. More... | |
preserveQueryString () | |
Preserve the current query string in tab links. More... | |
dynamicLoad ($container) | |
writeScript () | |
writeHTML () | |
Writes the HTML for this control to standard output. More... | |
appendQueryString ($url, $qs) | |
Appends a query string to the supplied URL. More... | |
getNextPage () | |
Get the next page in the tab list after the current page. More... | |
getPage ($idx, $appendQueryString=true) | |
Return the URL for the page at the specified tab index. More... | |
findPage ($page) | |
Finds the tab containing the specified URL. More... | |
next () | |
Move to the next page in the tab list. More... | |
drawCheckList () | |
drawCheckListEntry ($title, $form) | |
setDefaultStateImage ($img) | |
Public Attributes | |
$id | |
The DOM ID of the TabBar container element. More... | |
$tabs = array() | |
The tab records in this tab bar. More... | |
$queryString = null | |
The query string parameters to append to the navigation links. More... | |
$useQueryString = true | |
Whether a query string is being used as the navigation key. More... | |
$page = "" | |
The current page (for display purposes). This can be set explicitly to force the correct tab display when in a sub-page, for instance. More... | |
$showNumber | |
True to display the step number, false if not. More... | |
$states = array() | |
Array of display states to apply, indexed by tab. More... | |
$flags = array() | |
Array of flags to apply, indexed by tab. More... | |
$anchor = "" | |
Anchor name to generate (leave empty for no anchor tag) More... | |
$cssClass = "" | |
CSS class to apply to the top level container for the tabs. More... | |
$defaultStateImage | |
Image to show in the default tab state. More... | |
$showStates = true | |
true to show tab states, false to ignore them More... | |
$dynamic = false | |
true to indicate dynamic (AJAX-based) loading More... | |
$container = "" | |
The DOM ID of the container that will contain dynamically loaded content. More... | |
$dynamicLoadHandler = null | |
Javascript function to call to handle dynamic content load (optional) More... | |
$dynamicLoadFirstTab = true | |
By default, dynamically loaded tab bars will do a request for the content of the first tab on page load. Set to false to disable this. More... | |
$disabled = false | |
Set to true to generate disabled tab navigation. More... | |
The TabBar class is a user-interface control that manages a line of tabs for multi-page dialogs.
Definition at line 39 of file tab_bar.inc.
TabBar::appendQueryString | ( | $url, | |
$qs | |||
) |
Appends a query string to the supplied URL.
string | $url | |
string | $qs |
Definition at line 311 of file tab_bar.inc.
TabBar::drawCheckList | ( | ) |
Definition at line 446 of file tab_bar.inc.
TabBar::drawCheckListEntry | ( | $title, | |
$form | |||
) |
Definition at line 460 of file tab_bar.inc.
TabBar::dynamicLoad | ( | $container | ) |
Definition at line 104 of file tab_bar.inc.
TabBar::findPage | ( | $page | ) |
Finds the tab containing the specified URL.
$page | The page to find |
Reimplemented in TwoLevelTabBar.
Definition at line 411 of file tab_bar.inc.
TabBar::getNextPage | ( | ) |
Get the next page in the tab list after the current page.
Reimplemented in TwoLevelTabBar.
Definition at line 329 of file tab_bar.inc.
TabBar::getPage | ( | $idx, | |
$appendQueryString = true |
|||
) |
Return the URL for the page at the specified tab index.
string | $idx | the index of the tab for which we require the URL |
Definition at line 357 of file tab_bar.inc.
TabBar::next | ( | ) |
Move to the next page in the tab list.
If the current tab is the last in the set, redirect to the first tab in the list (wraparound).
Definition at line 428 of file tab_bar.inc.
TabBar::preserveQueryString | ( | ) |
Preserve the current query string in tab links.
Definition at line 89 of file tab_bar.inc.
TabBar::setDefaultStateImage | ( | $img | ) |
Definition at line 496 of file tab_bar.inc.
TabBar::TabBar | ( | $id, | |
$tabs, | |||
$queryString = "" , |
|||
$useQueryString = true , |
|||
$showNumber = false |
|||
) |
Construct a new TabBar control.
string | $queryString | the Query String portion of the page URIs |
array | $tabs | the steps in the workflow |
string | $queryString | the query string to append to the links |
bool | $useQueryString | flag to indicate whether a query string is required. If so, and none is provided, then all tabs except the first are disabled. |
bool | $showNumber | flag to indicate whether to display step numbers |
Definition at line 71 of file tab_bar.inc.
TabBar::writeHTML | ( | ) |
Writes the HTML for this control to standard output.
Reimplemented in WizardBar.
Definition at line 192 of file tab_bar.inc.
TabBar::writeScript | ( | ) |
Definition at line 110 of file tab_bar.inc.
TabBar::$anchor = "" |
Anchor name to generate (leave empty for no anchor tag)
Definition at line 49 of file tab_bar.inc.
TabBar::$container = "" |
The DOM ID of the container that will contain dynamically loaded content.
Definition at line 55 of file tab_bar.inc.
TabBar::$cssClass = "" |
CSS class to apply to the top level container for the tabs.
Definition at line 50 of file tab_bar.inc.
TabBar::$defaultStateImage |
Image to show in the default tab state.
Definition at line 51 of file tab_bar.inc.
TabBar::$disabled = false |
Set to true to generate disabled tab navigation.
Definition at line 59 of file tab_bar.inc.
TabBar::$dynamic = false |
true to indicate dynamic (AJAX-based) loading
Definition at line 54 of file tab_bar.inc.
TabBar::$dynamicLoadFirstTab = true |
By default, dynamically loaded tab bars will do a request for the content of the first tab on page load. Set to false to disable this.
Definition at line 57 of file tab_bar.inc.
TabBar::$dynamicLoadHandler = null |
Javascript function to call to handle dynamic content load (optional)
Definition at line 56 of file tab_bar.inc.
TabBar::$flags = array() |
Array of flags to apply, indexed by tab.
Definition at line 48 of file tab_bar.inc.
TabBar::$id |
The DOM ID of the TabBar container element.
Definition at line 41 of file tab_bar.inc.
TabBar::$page = "" |
The current page (for display purposes). This can be set explicitly to force the correct tab display when in a sub-page, for instance.
Definition at line 45 of file tab_bar.inc.
TabBar::$queryString = null |
The query string parameters to append to the navigation links.
Definition at line 43 of file tab_bar.inc.
TabBar::$showNumber |
True to display the step number, false if not.
Definition at line 46 of file tab_bar.inc.
TabBar::$showStates = true |
true to show tab states, false to ignore them
Definition at line 52 of file tab_bar.inc.
TabBar::$states = array() |
Array of display states to apply, indexed by tab.
Definition at line 47 of file tab_bar.inc.
TabBar::$tabs = array() |
The tab records in this tab bar.
Definition at line 42 of file tab_bar.inc.
TabBar::$useQueryString = true |
Whether a query string is being used as the navigation key.
Definition at line 44 of file tab_bar.inc.