Table generation class v0.1 Easy to use with lots of options and clean code.
By : mgalesic
includes:
class.tabledata.php readme.txt
------------- Legends:
[*A] - can take any number of arguments [0] - no argument is needed for function to work [null] - function has no arguments [] - calling a function itself, withoth arguments will set default value
D: generate a <table> tag with default values or arguments specified L: [0]
* function row();
D: generate a <tr><td>data 1</td><td>data 2</td><td>data n</td></tr> tags plus arguments set with other functions L: [*A]
* function endTable(); - [null]
D: generate a </table> tag L: [null]
* function setTDwidth();
D: set a width arguments for <td> tags L: [*A], []
* function setTDalign();
D: set an align arguments for <td> tags L: [*A], []
* function setTDclass();
D: set a class arguments for <td> tags L: [*A], []
* function setTDstyle();
D: set a style arguments for <td> tags L: [*A], []
* function setTRclass($class_='');
D: set a class argument for <tr> tag L: []
* function setTRstyle($style='');
D: set a style argument for <tr> tag L: []
* function setTRheight($height='');
D: set a height argument for <tr> tag L: []
* function setTRalign($align='');
D: set a align argument for <tr> tag L: []
* function setTRvalign($valign='');
D: set a valign argument for <tr> tag L: []
* function setTRcolor();
D: you can use this function if you want to color specific number of rows with different color L: [*A], []
* function forceRow();
D: generate a <tr><td>data 1</td><td>data 2</td><td>data n</td></tr> tags plus arguments set with other force functions it is useful if you want only one row to be different from others it can be use as a header for you table if you set width argument with force function and use it as a heder you don't to set width for other rows
L: [*A]
* function setForceTDwidth();
D: set a width arguments for <td> tags of force function L: [*A], []
* function setForceTDalign();
D: set a align arguments for <td> tags of force function L: [*A], []
* function setForceTDstyle();
D: set a style arguments for <td> tags of force function L: [*A], []
* function setForceTDclass();
D: set a class arguments for <td> tags of force function L: [*A], []
* function setForceTRclass($klasa='');
D: set a class argument for <tr> tag of force function L: []
* function setForceTRstyle($style='');
D: set a style argument for <tr> tag of force function L: []
* function setForceTRheight($height='');
D: set a height argument for <tr> tag of force function L: []
* function setForceTRalign($align='');
D: set a align argument for <tr> tag of force function L: []
* function setForceTRvalign($valign='');
D: set a valign argument for <tr> tag of force function L: []
* function emptyRow($col, $color, $height);
D: generate an empty row col is number of <td> tags, color is backround for <tr>
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.