Class TreeNav

Description

This class tries to build a tree navigational widget.

definetly not done.

Located in Program_Root/widgets/TreeNav.inc (line 25)

Container
   |
   --BaseWidget
      |
      --TreeNav
Method Summary
void TreeNav ([int $width = 760])
void build_img_td ()
void build_link_td (mixed $nav)
void build_spacer_td ()
void push (mixed $url, mixed $text, [mixed $selected = FALSE])
void push_blank ([mixed $num = 1])
void push_text (mixed $text, [mixed $selected = FALSE])
string render ([int $indent_level = 1], int $output_debug)
void set_selected (string $text)
Variables

Inherited Variables

Inherited from BaseWidget

BaseWidget::$title
BaseWidget::$width

Inherited from Container

Container::$_flags
Methods
Constructor TreeNav (line 34)

Constructor for this class It just sets the width for the widget.

void TreeNav ([int $width = 760])
  • int $width:

    - the width of the widget

build_img_td (line 70)

build the image seperator td

void build_img_td ()
build_innertable (line 121)

build all of the idividual nav elements.

void build_innertable ()
build_link_td (line 86)

build the link td.

void build_link_td (mixed $nav)
build_spacer_td (line 103)

build a spacer td.

void build_spacer_td ()
push (line 41)
void push (mixed $url, mixed $text, [mixed $selected = FALSE])

Redefinition of:
Container::push()
Same as add().
push_blank (line 46)
void push_blank ([mixed $num = 1])
push_text (line 51)
void push_text (mixed $text, [mixed $selected = FALSE])
render (line 156)

function that will render the widget.

  • return:

    the raw html output.

string render ([int $indent_level = 1], int $output_debug)
  • int $indent_level:

    - the indentation level for the container.

  • int $output_debug:

    - the output debug flag to maintain compatibility w/ the API.


Redefinition of:
Container::render()
This function is compatible with the rest of the phpHtmllib API spec.
set_selected (line 62)

Set this text as the selected item

void set_selected (string $text)
  • string $text:

    - the text item selected.

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_title()
BaseWidget::set_width()

Inherited From Container

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

Documention generated on Thu, 31 Jul 2003 18:33:52 -0700 by phpDocumentor 1.2.0