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
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_tabs array The array of tabs.

Méthodes publiques

Méthode 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 méthode

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 méthode

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

render() public méthode

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_oe property

The array of tabs.
protected array $_tabs
Résultat array