Class TRtag

Description

Table Row <TR> class.

Located in /tag_classes/ALLTAGS.inc (line 1605)

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

Holds the default attributes for all <td>'s

  • private:
mixed $_tag = "tr" (line 1606)
Methods
add (line 1645)

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 1685)

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 ( &$content, 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.
  • &$content

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

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 1721)

Same ass add_reference()

NOTE: only exists for compatibility with 1.x

  • deprecated: - use add()
void push_reference ( &$content)
  • &$content

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

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()

Inherited From XMLTagClass

XMLTagClass::XMLTagClass()
XMLTagClass::get_tag()
XMLTagClass::get_tag_attribute()
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::_set_flags()

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 Fri, 28 Jan 2011 08:52:48 -0500 by phpDocumentor 1.4.3