Class TRtag

Description

Table Row <TR> class.

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

Container
   |
   --XMLTagClass
      |
      --HTMLTagClass
         |
         --TRtag
Variable Summary
Method Summary
void add (mixed $content)
void add_reference (mixed &$content)
void push ()
void push_reference (mixed &$content)
void set_default_td_attributes (array $attributes)
Variables
array $_default_td_attributes = array() (line 1523)

Holds the default attributes for all <td>'s

  • private:
mixed $_tag = "tr" (line 1516)

Inherited Variables

Inherited from Container

Container::$_flags
Methods
add (line 1555)

add content onto content stack adds content to tag as a FIFO.

You can have n number of parameters. each one will get added in succession to the content.

we override this from the parent so we can auto detect if the user is adding raw strings instead of objects. If they are trying to add raw strings, then we wrap that in a TDtag object, since you can't add anything other then a <TD> or <TH> to a <TR>.

  • access: public
void add (mixed $content)
  • mixed $content:

    - either string, or tag object.


Redefinition of:
Container::add()
add content onto content stack
add_reference (line 1595)

add content onto content stack

adds content to tag as a FIFO You can only add 1 element at a time, and it will be added as a reference. So you can't do add_reference("something");, since "something" is a static.

we override this from the parent so we can auto detect if the user is adding raw strings instead of objects. If they are trying to add raw strings, then we wrap that in a TDtag object, since you can't add anything other then a <TD> or <TH> to a <TR>.

  • access: public
void add_reference (mixed &$content)
  • mixed $content:

    - either string, or tag object. the tag object gets stored as a reference to the original, so you can add it, then modify it later.


Redefinition of:
Container::add_reference()
Add content onto content stack so you can change the item later.
push (line 1619)

Same ass add()

NOTE: only exists for compatibility with 1.x

  • deprecated:

    - use add()

void push ()

Redefinition of:
Container::push()
Same as add().
push_reference (line 1631)

Same ass add_reference()

NOTE: only exists for compatibility with 1.x

  • deprecated:

    - use add()

void push_reference (mixed &$content)

Redefinition of:
Container::push_reference()
Same as add_reference NOTE : only exists for compatibility with 1.1.x
set_default_td_attributes (line 1537)

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_td_attributes (array $attributes)
  • array $attributes:

    - the default attributes

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