Docs For Class TabWidget

## Class TabWidget

Description

This class implements the Qualys Tab object.

- author: Walter A. Boring IV

Located in /widgets/TabWidget.inc (line 27)

    Container
       |
       --BaseWidget
          |
          --TabWidget

Direct descendents

Class | Description
--- | ---
FirstTab | This class implements the Qualys Tab object.
FooTab | This class implements the Qualys Tab object.
test | This class implements the Qualys Tab object.

Variable Summary
mixed $_number
mixed $_selected
Method Summary
TabWidget TabWidget (string $title)
Container content ()
string name (string $title)
string queryvar (string $title, [boolean $subtab_flag = false])
Variables
mixed $_number = 0 (line 37)

The tab number in the list of tabs.

mixed $_selected = false (line 32)

Is this tab selected or not?

#### Inherited Variables

Inherited from BaseWidget

> BaseWidget::$title
> BaseWidget::$width
> BaseWidget::$_image_prefix

Methods
Constructor TabWidget (line 46)

The constructor

    function TabWidget($title) {
            $this->set_title($title);
        }

TabWidget TabWidget (string $title)

- string $title: the title for the Tab

content (line 60)

This is the function where you can build the content for the Tab itself.

The alternative is to use the add() method.

    function content() {
            return null;
        }

- return: object

Container content ()

Redefined in descendants as:

- FirstTab::content()
- FooTab::content()
- test::content()

name (line 70)

This method creates the name of the tab

- return: - the tab name

string name (string $title)

- string $title: - the tab display string

queryvar (line 92)

This method builds the query string 'tab_selected=<name>' for you to place in a url

- return: - the query var assigned to tab name

string queryvar (string $title, [boolean $subtab_flag = false])

- string $title: - the tab title
- boolean $subtab_flag: - is this a subtab?

#### Inherited Methods

Inherited From BaseWidget

> BaseWidget::get_align()
> BaseWidget::get_css()
> BaseWidget::get_javascript()
> BaseWidget::get_title()
> BaseWidget::get_width()
> BaseWidget::set_align()
> BaseWidget::set_image_path_prefix()
> BaseWidget::set_title()
> BaseWidget::set_width()

Inherited From Container

> Container::Container()
> Container::add()
> Container::add_reference()
> Container::count_content()
> Container::get_element()
> Container::get_indent_flag()
> Container::push()
> Container::push_reference()
> Container::render()
> Container::reset_content()
> Container::set_collapse()
> Container::set_indent_flag()

Documentation generated on Thu, 1 Sep 2005 17:06:34 -0700 by phpDocumentor 1.3.0RC3