You are here

class views_tab in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 includes/tabs.inc \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
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.