PHP Class Horde_Core_Ui_Tabs, horde

Copyright 2001-2003 Robert E. Coyle Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Jason M. Felice ([email protected])
Author: Jan Schneider ([email protected])
Inheritance: extends Horde_Core_Ui_Widget
Show file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_tabs array The array of tabs.

Public Methods

Method Description
addTab ( string $title, Horde_Url $link, mixed $params = [] ) Adds a tab to the interface.
getTitleFromAction ( string $tabname ) : string Returns the title of the tab with the specified name.
render ( string $active_tab = null, string $class = 'tabset' ) Renders the tabs.

Method Details

addTab() public method

Adds a tab to the interface.
public addTab ( string $title, Horde_Url $link, mixed $params = [] )
$title string The text which appears on the tab.
$link Horde_Url The target page.
$params mixed Either a string value to set the tab variable to, or a hash of parameters. If an array, the tab variable can be set by the 'tabname' key.

getTitleFromAction() public method

Returns the title of the tab with the specified name.
public getTitleFromAction ( string $tabname ) : string
$tabname string The name of the tab.
return string The tab's title.

render() public method

Renders the tabs.
public render ( string $active_tab = null, string $class = 'tabset' )
$active_tab string If specified, the name of the active tab. If not, the active tab is determined automatically.
$class string The CSS class of the tabset.

Property Details

$_tabs protected property

The array of tabs.
protected array $_tabs
return array