[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/views/includes/ -> tabs.inc (summary)

(no description)

File Size: 193 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

views_tabset:: (8 methods):
  add()
  add_tab()
  set()
  set_body()
  add_extra()
  remove()
  set_selected()
  render()

views_tab:: (4 methods):
  views_tab()
  render()
  theme_views_tabset()
  theme_views_tab()


Class: views_tabset  - X-Ref

Contain a set of tabs as well as the ability to render them.

There are three 'areas' of a tabset.
- title: The clickable link to display the tab area. These are always visible.
- body: The actual HTML body of the tab. Only one body is visible at a time.
- extra: An optional decorative area around the tabs.
add($name, $title = '', $body = '')   X-Ref
Add a tab to the tabset.

param: $name
param: $title
param: $body

add_tab($tab)   X-Ref
Add a fully realized tab object to the tabset.

param: $tab

set($name, $title, $body = NULL)   X-Ref
Set the values of a tab.

param: $name
param: $title
param: $body

set_body($name, $body)   X-Ref
Set the body of a tab.


add_extra($text)   X-Ref
Add text to the 'extra' region of the tabset.


remove($tab)   X-Ref
Remove a tab.

param: $tab

set_selected($name)   X-Ref
Control which tab will be selected when it is rendered.


render()   X-Ref
Output the HTML for the tabs.

return:

Class: views_tab  - X-Ref

An object to represent an individual tab within a tabset.

views_tab($name, $title, $body = NULL)   X-Ref
Construct a new tab.


render()   X-Ref
Generate HTML output for a tab.


theme_views_tabset($tabs, $extra = NULL, $selected = NULL)   X-Ref
Render a tabset.


theme_views_tab($body)   X-Ref
Theme a simple tab.




Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7