An object to represent an individual tab within a tabset.

Hierarchy

Expanded class hierarchy of views_tab

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

Namesort descending Modifiers Type Description Overrides
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.