class views_tab

An object to represent an individual tab within a tabset.

Hierarchy

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

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

Title Sort descending Modifiers Object type Summary
views_tab::$body property
views_tab::$name property
views_tab::$title property
views_tab::render function Generate HTML output for a tab.
views_tab::views_tab function Construct a new tab.