Located in /base/include/class.table.php (line 30)
| Class | Description |
|---|---|
| Form |
Default settings array
These are the default settings array. All default settings are stored here and are not moved to the $table array until the CompileTable method is resolved, and even then, it is only moving it to a temporary array.
Fancy styles array
The fancy styles array. This stores information regarding row and column styles. Anything added to make display of certain effects easier ( this is to imply that any further display-like mehthods add will be stored in this array here ).
Total rows array
This keeps track of the total number of rows.
Table structure array
This is the table array. It keeps track of all cell content and attributes. $table[0]["table_values"] is reserved for table information. Cells start at $table[1][1].
Initializes the class variables.
Adds 1 to the row_count count, keeping track of the total number of rows in the table. It returns the current row_count after the addition.
Compile table to HTML.
Turns the table array into an HTML table. This must be called before a table can be printed out.
fetches out the compiled table.
Returns the current total number of columns in your table
Returns the current row you are working with.
Adds a whole line to the table. Argument must be an array.
Prints out the compiled table.
Allows you to quickly see what is located and where it's located in your table array. Used for debugging purposes.
Set alternating colors.
You simply put in two HTML compatible colors, like #ffffff, or 'white' and it will creat alternating color rows.
Allows you to easily set any one attribute of the cell if need be. This works the same as the SetCellContent method.
Allows you to set multiple attributes for a cell in one
method call. You would call it like this: $attributes = array ( "attribute_name" => "value", "attribute_name_2" => "value"); $table->SetCellAttributes( $row, $col, $attributes );
Set the cells BBGCOLOR setting Allows you to easily set the bgcolor of the cell.
This works the same as the SetCellContent method.
Allows you to easily set the colspan attribute of the cell if need be. This works the same as the SetCellContent method.
Set the cell's content.
Allows you to easily set the content of a cell. The first parameter required is the row the cell is on, followed by the column the cell is in, and then finally, what the content of the cell is.
Allows you to easily set the rowspan attribute of the cell if need be. This works the same as the SetCellContent method.
Allows you to easily set the style of the cell using CSS.
This works the same as the SetCellContent method.
Sets the default bgcolor for all cells.
Sets the default attribute for all cells.
Set td default attributes
Same setup as SetCellAttributes, however, without the row or col parameters (however, the array still works the same way) 'type' is what you are setting default attributes for. Default attributes can be overriden simply by using one of the aboe methods. If you specifically set an attribute using the 'row', 'col', 'attribute' methods above, they will override the Default Attribute for that one element.
Sets the default content for all cells.
Sets the default style for all cells.
Set table default attributes
Same setup as SetCellAttributes, however, without the row or col parameters (however, the array still works the same way) 'type' is what you are setting default attributes for. Default attributes can be overriden simply by using one of the aboe methods. If you specifically set an attribute using the 'row', 'col', 'attribute' methods above, they will override the Default Attribute for that one element.
Set attributes to particular column.
This works the same way as the SetFancyRowStyle method, except that this method works on arrays. This method will override SetFancyRowStyle styles which are set.
Set attributes to particular rows.
You can easily setup attributes for an entire row using this method. You simply send it a row number (or an array of row numbers if more than one) as well as the attributes in an array format (like we do every place else) and all the cells in the row number will be set with those attributes. Styles set in this manner can be overridden by
Set table attribute
Sets the table attributes in the same manner as the SetCellAttributes array. The table information is stored in the table array as the first element ($this->table[0]).
Set table attributes
Sets the table attributes in the same manner as the SetCellAttributes array. The table information is stored in the table array as the first element ($this->table[0]).
Documentation generated on Thu, 27 Nov 2003 17:36:28 +0100 by phpDocumentor 1.2.3