Class TABLEtag

Description

<TABLE> tag class

The <table> tag defines the start of a table. Inside a table row you can put table headers, table rows, and table cells.

Located in Program_Root/tag_classes/ALLTAGS.inc (line 1217)

Container
   |
   --XMLTagClass
      |
      --HTMLTagClass
         |
         --TABLEtag
Direct descendents
Class Description
TBODYtag <TBODY> class.
TFOOTtag <TFOOT> tag class
THEADtag Table Header <THEAD> class.
Variable Summary
Method Summary
string add_row (mixed $args)
void push_row ()
void set_cell_attributes (int $row, int $col, [array $attributes = array()])
void set_cell_content (mixed $row, mixed $col, mixed $content)
void set_default_col_attributes (array $attributes)
void set_default_row_attributes (array $attributes)
void set_row_attributes (int $row, array $attributes, int $col)
Variables
array $_default_col_attributes = array() (line 1233)

Holds the default attributes for all <td>'s

  • private:
array $_default_row_attributes = array() (line 1226)

Holds the default attributes for all <tr>'s

  • private:
mixed $_tag = "table" (line 1218)

Redefined in descendants as:

Inherited Variables

Inherited from Container

Container::$_flags
Methods
add_row (line 1257)

push 1 row (tr) of content.

Content can be raw strings, or tag objects. Can push 1 item, or multiple items in call. Each item will be its own td. should call push() to push a <TR> object, but we detect it here anyway. This function does not save the content by reference. It copies the content and pushes it into the table. If you want to save a reference use push() instead.

  • public:
string add_row (mixed $args)
  • mixed $args:

    The <td>'s to push for next row

push_row (line 1304)

Same ass add_row()

NOTE: only exists for compatibility with 1.x

  • deprecated:

    - use add()

void push_row ()
set_cell_attributes (line 1346)

update the attributes of a particular element or td.

  • public:
void set_cell_attributes (int $row, int $col, [array $attributes = array()])
  • int $row:

    row # of the table to edit

  • int $col:

    column # of the table to edit

  • array $attributes:

    array of name=>value pairs

set_cell_content (line 1372)
void set_cell_content (mixed $row, mixed $col, mixed $content)
set_default_col_attributes (line 1330)

Sets the default attributes for <td>'s that are added to the table. If there are any attributes set for the <td> it won't use the defaults.

void set_default_col_attributes (array $attributes)
  • array $attributes:

    - the default attributes

set_default_row_attributes (line 1317)

Sets the default attributes for <tr>'s that are added to the table. If there are any attributes set for the <tr> it won't use the defaults.

void set_default_row_attributes (array $attributes)
  • array $attributes:

    - the default attributes

set_row_attributes (line 1364)

update the attributes of a particular row or tr.

  • public:
void set_row_attributes (int $row, array $attributes, int $col)
  • int $row:

    row # of the table to edit

  • int $col:

    column # of the table to edit

  • array $attributes:

    array of name=>value pairs

Inherited Methods

Inherited From HTMLTagClass

HTMLTagClass::HTMLTagClass()
HTMLTagClass::render()
HTMLTagClass::set_class()
HTMLTagClass::set_id()
HTMLTagClass::set_style()
HTMLTagClass::_build_attribute_string()
HTMLTagClass::_prepare_flags()
HTMLTagClass::_render_tag_debug()

Inherited From XMLTagClass

XMLTagClass::XMLTagClass()
XMLTagClass::get_tag()
XMLTagClass::get_tag_name()
XMLTagClass::render()
XMLTagClass::reset_attributes()
XMLTagClass::set_cdata_flag()
XMLTagClass::set_collapse()
XMLTagClass::set_newline_after_closetag()
XMLTagClass::set_newline_after_opentag()
XMLTagClass::set_tag_attribute()
XMLTagClass::set_tag_attributes()
XMLTagClass::set_tag_name()
XMLTagClass::_build_attribute_string()
XMLTagClass::_get_element()
XMLTagClass::_prepare_flags()
XMLTagClass::_render_close_tag()
XMLTagClass::_render_content()
XMLTagClass::_render_open_tag()
XMLTagClass::_set_flags()

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:32:10 -0700 by phpDocumentor 1.2.0