Class: ViewList
Source Location: /myphp-1.9/myphp-1.9-mvc/html/view/ViewList.php
Class ViewList
Class Overview
|
Generates the html for a View List
- Usage:
- $view = new ViewList($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
- print $view->getHtml();
- Or
- ViewList::display($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
-
- Generates a complete View List interface
- +--------------------------------
- |>| Text header
- +--------------------------------
- | head1 | head2 | head3 | etc.
- +--------------------------------
- | dat_1 | dat_2 | dat_3 | etc.
- +--------------------------------
Located in /myphp-1.9/myphp-1.9-mvc/html/view/ViewList.php [line 41]
Object
|
--Html
|
--Table
|
--ViewCommon
|
--ViewList
|
Methods
|
Inherited Properties, Constants, and Methods
Method Summary
| String |
getSubtotal() |
Return the subtotal as html, like a basket or invoice |
Methods
ViewList ViewList(
DataReader
$datareader, [String
$text = ''], [String
$width = ''], [String
$class = ''], [String
$border = ''], [String
$cellpadding = ''], [String
$cellspacing = ''], [String
$summary = ''], [String
$caption = '']
)
|
|
Constructor
Parameters:
|
DataReader |
$datareader: |
The Data Reader object |
|
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(
DataReader
$datareader, [String
$text = ''], [String
$width = ''], [String
$class = ''], [String
$border = ''], [String
$cellpadding = ''], [String
$cellspacing = ''], [String
$summary = ''], [String
$caption = '']
)
|
|
Display html
- Usage:
- ViewList::display($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
Parameters:
|
DataReader |
$datareader: |
The Data Reader object |
|
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:
- ViewCommon::display()
- Display html
Redefined in descendants as:
String getSubtotal(
String
$colspan
)
|
|
Return the subtotal as html, like a basket or invoice
Parameters:
|
String |
$colspan: |
The colspan to use |
API Tags:
| Return: | The html |
| Abstract: | |
Redefined in descendants as:
|
|