Class: ViewForm
Source Location: /myphp-1.9/myphp-1.9-mvc/html/view/ViewForm.php
Class ViewForm
Class Overview
|
Generates the html for a View Form
- Usage:
- $view = new ViewForm($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
- print $view->getHtml();
- Or
- ViewForm::display($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
-
- Generates a complete View Form interface
- +---------------+
- |>| Text header |
- +----------------
- | Label |
- | Textfield |
- +---------------
- | Buttons |
- +---------------+
Located in /myphp-1.9/myphp-1.9-mvc/html/view/ViewForm.php [line 58]
Object
|
--Html
|
--Table
|
--ViewCommon
|
--ViewForm
|
Methods
|
Direct descendents
| ViewLogin |
Generates the html for a View Login Form
|
Inherited Properties, Constants, and Methods
Method Summary
| Object |
getElement() |
Return the Label and TexField as an object |
| Object |
getRow() |
Return the html |
| Object |
getSubmitButton() |
You may override this method, in order to create your own |
Methods
ViewForm ViewForm(
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:
- ViewForm::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:
Return the Buttons as html
API Tags:
| Return: | The html as an Object |
Object getElement(
String
$type, String
$key, String
$name, String
$value, [String
$len = ''], [String
$required = ''], [String
$debug = '']
)
|
|
Return the Label and TexField as an object
Parameters:
|
String |
$type: |
The type to use |
|
String |
$key: |
The Key to use |
|
String |
$name: |
The name to use |
|
String |
$value: |
The value to use |
|
String |
$len: |
The maxsize to use |
|
String |
$required: |
The required text to use, if any |
|
String |
$debug: |
The debug text to use, if any |
API Tags:
| Return: | The html as an Object |
Redefinition of:
- Html::getElement()
- Get the element at position $i in array
Object getRow(
String
$key, String
$value
)
|
|
Return the html
Parameters:
|
String |
$key: |
The Key to use |
|
String |
$value: |
The value to use |
API Tags:
| Return: | The html as an Object |
Redefinition of:
- ViewCommon::getRow()
- Return the row data as html <tr><td>data 1</td><td>data 2</td><td>data ns</td></tr> ...
String getRows(
array
$row, int
$numrows
)
|
|
Return the html
Parameters:
|
array |
$row: |
The rows to loop |
|
int |
$numrows: |
The number of rows |
API Tags:
Object getSubmitButton(
)
|
|
You may override this method, in order to create your own
Return the Submit Button as html
API Tags:
| Return: | The html as an Object |
| Abstract: | |
Redefined in descendants as:
|
|