Class: Table
Source Location: /myphp-1.9/myphp-1.9-table/html/component/Table.php
Class Table
Class Overview
|
Generates the html for a table
- Usage:
- $table = new Table($text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
- print $table->getHtml();
- Or
- Table::display($text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
-
- Generates a complete table interface
- ---------------------------------
- | Text header
- ---------------------------------
- | head1 | head2 | head3 |
- ---------------------------------
- | dat_1 | dat_2 | dat_3 |
- ---------------------------------
Located in /myphp-1.9/myphp-1.9-table/html/component/Table.php [line 46]
Object
|
--Html
|
--Table
|
Properties
|
Methods
|
Inherited Properties, Constants, and Methods
Method Summary
| Table |
Table() |
Constructor |
| void |
end() |
Get the end of the table tag |
| String |
getEnd() |
Get the table end |
| String |
getHtml() |
Get the complete html for a table |
| String |
getStart() |
Get the start of the table |
| void |
start() |
Get the start of the table tag |
| void |
td() |
Display html for the TD tag |
| void |
tdend() |
Get the end of the TD tag |
| void |
tdstart() |
Get the start of the TD tag |
| void |
th() |
Display html for a TH |
| void |
thend() |
Get the end of the TH tag |
| void |
thstart() |
Get the start of the TH tag |
| void |
tr() |
Display html for the TR tag |
| void |
trend() |
Get the end of the TR tag |
| void |
trstart() |
Get the start of the TR tag |
Methods
Table Table(
[String
$text = ''], [String
$width = ''], [String
$class = ''], [String
$border = ''], [String
$cellpadding = ''], [String
$cellspacing = ''], [String
$summary = ''], [String
$caption = '']
)
|
|
Constructor
Parameters:
|
String |
$text: |
The text header for the table |
|
String |
$width: |
The Width for the table |
|
String |
$class: |
The Class |
|
String |
$border: |
The Border |
|
String |
$cellpadding: |
The CellSpacing |
|
String |
$cellspacing: |
The CellPadding |
|
String |
$summary: |
The Summary |
|
String |
$caption: |
The Caption |
void display(
[String
$text = ''], [String
$width = ''], [String
$class = ''], [String
$border = ''], [String
$cellpadding = ''], [String
$cellspacing = ''], [String
$summary = ''], [String
$caption = '']
)
|
|
Display html
- Usage:
- Table::display($text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
Parameters:
|
String |
$text: |
The text header for the table |
|
String |
$width: |
The width of the table |
|
String |
$class: |
The class of the table |
|
String |
$border: |
The border of the table |
|
String |
$cellpadding: |
The CellSpacing |
|
String |
$cellspacing: |
The CellPadding |
|
String |
$summary: |
The Summary |
|
String |
$caption: |
The Caption |
API Tags:
Redefinition of:
- Html::display()
- Display the html
Redefined in descendants as:
void end(
[String
$type = '']
)
|
|
Get the end of the table tag
Parameters:
|
String |
$type: |
'table', 'tr', 'td' or 'th' or empty |
API Tags:
Get the Column End
API Tags:
String getColumnStart(
[String
$class = ''], [String
$valign = ''], [String
$colspan = '']
)
|
|
Get the Column Start
Parameters:
|
String |
$class: |
The class name |
|
String |
$valign: |
The alignment of data |
|
String |
$colspan: |
The Column Span |
API Tags:
Get the table end
API Tags:
Get the complete html for a table
API Tags:
Redefinition of:
- Html::getHtml()
- Get Html
Redefined in descendants as:
Get the Row End
API Tags:
String getRowStart(
[String
$class = '']
)
|
|
Get the Row Start
Parameters:
|
String |
$class: |
The css class name for the row |
API Tags:
Get the start of the table
API Tags:
| Return: | the html for the start of the table |
Get the Table Header from class TableHeader
API Tags:
| Return: | the html table header |
void start(
[String
$text = ''], [String
$width = ''], [String
$class = ''], [String
$border = ''], [String
$cellpadding = ''], [String
$cellspacing = ''], [String
$summary = ''], [String
$caption = '']
)
|
|
Get the start of the table tag
- Usage:
- Table::start($text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
Parameters:
|
String |
$text: |
The text header for the table |
|
String |
$width: |
The Width for the table |
|
String |
$class: |
The Class |
|
String |
$border: |
The Border |
|
String |
$cellpadding: |
The CellSpacing |
|
String |
$cellspacing: |
The CellPadding |
|
String |
$summary: |
The Summary |
|
String |
$caption: |
The Caption |
API Tags:
void td(
[String
$class = ''], [String
$valign = '']
)
|
|
Display html for the TD tag
Parameters:
|
String |
$class: |
The class name |
|
String |
$valign: |
The alignment of data |
API Tags:
Get the end of the TD tag
API Tags:
void tdstart(
[String
$class = ''], [String
$valign = '']
)
|
|
Get the start of the TD tag
Parameters:
|
String |
$class: |
The class name |
|
String |
$valign: |
The alignment of data |
API Tags:
void th(
[String
$class = ''], [String
$valign = ''], [String
$align = '']
)
|
|
Display html for a TH
- Usage:
- Table::th($class,$valign,$align);
Parameters:
|
String |
$class: |
The class name |
|
String |
$valign: |
The valignment of data |
|
String |
$align: |
The alignment of data |
API Tags:
Get the end of the TH tag
API Tags:
void thstart(
[String
$class = ''], [String
$valign = ''], [String
$align = '']
)
|
|
Get the start of the TH tag
Parameters:
|
String |
$class: |
The class name |
|
String |
$valign: |
The valignment of data |
|
String |
$align: |
The alignment of data |
API Tags:
void tr(
[String
$class = '']
)
|
|
Display html for the TR tag
Parameters:
|
String |
$class: |
The class name |
API Tags:
Get the end of the TR tag
API Tags:
void trstart(
[String
$class = '']
)
|
|
Get the start of the TR tag
Parameters:
|
String |
$class: |
The class name |
API Tags:
|
|