<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 /tag_classes/ALLTAGS.inc (line 1259)
Container | --XMLTagClass | --HTMLTagClass | --TABLEtag
Holds the default attributes for all <td>'s
Holds the default attributes for all <tr>'s
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.
Same ass add_row()
NOTE: only exists for compatibility with 1.x
update the attributes of a particular element or td.
- function set_cell_attributes( $row, $col, $attributes=array() ) {
- if (is_object($this->_content[$row])) {
- if (is_object($this->_content[$row]->_content[$col])) {
- $this->_content[$row]->_content[$col]->set_tag_attributes( $attributes);
- }
- }
- }
This method sets/resets the content for a specific cell in the table
- function set_cell_content( $row, $col, $content) {
- $item = &$this->_get_element($row);
- if ( is_object($item) ) {
- $item = &$item->_get_element($col);
- if (is_object($item)) {
- $item->reset_content( $content );
- } else {
- return -1;
- }
- } else {
- return -1;
- }
- }
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.
- function set_default_col_attributes( $attributes ) {
- $this->_default_col_attributes = $attributes;
- }
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.
- function set_default_row_attributes( $attributes ) {
- $this->_default_row_attributes = $attributes;
- }
update the attributes of a particular row or tr.
- function set_row_attributes( $row, $attributes ) {
- if ($this->_content[$row]) {
- $this->_content[$row]->set_tag_attributes( $attributes );
- } else {
- return -1;
- }
- }
This method is used to set a summary attribute on the table for speech-synthesizing non-visual browsers
- function set_summary($summary) {
- $this->set_tag_attribute("summary", $summary);
- }
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 Thu, 1 Sep 2005 17:05:29 -0700 by phpDocumentor 1.3.0RC3