class views_tab in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 includes/tabs.inc \views_tab
An object to represent an individual tab within a tabset.
Hierarchy
- class \views_tab
Expanded class hierarchy of views_tab
1 string reference to 'views_tab'
- views_tabset::add in includes/
tabs.inc - Add a tab to the tabset.
File
- includes/
tabs.inc, line 141 - Classes and theme functions for rendering javascript UI tabs.
View source
class views_tab {
var $title;
var $body;
var $name;
/**
* Construct a new tab.
*/
function views_tab($name, $title, $body = NULL) {
$this->name = $name;
$this->title = $title;
$this->body = $body;
}
/**
* Generate HTML output for a tab.
*/
function render() {
return theme('views_tab', $this->body);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
views_tab:: |
property | |||
views_tab:: |
property | |||
views_tab:: |
property | |||
views_tab:: |
function | Generate HTML output for a tab. | ||
views_tab:: |
function | Construct a new tab. |