phpDocumentor mvc
[ class tree: mvc ] [ index: mvc ] [ all elements ]

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

  1. Usage:
  2. $view = new ViewForm($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
  3. print $view->getHtml();
  4. Or
  5. ViewForm::display($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
  6.  
  7. Generates a complete View Form interface
  8. +---------------+
  9. |>| Text header |
  10. +----------------
  11. | Label |
  12. | Textfield |
  13. +---------------
  14. | Buttons |
  15. +---------------+

Located in /myphp-1.9/myphp-1.9-mvc/html/view/ViewForm.php [line 58]

Object
   |
   --Html
      |
      --Table
         |
         --ViewCommon
            |
            --ViewForm

Methods

[ Top ]
Direct descendents
Child Class Description
ViewLogin Generates the html for a View Login Form

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From ViewCommon

ViewCommon::$datareader
ViewCommon::$id
ViewCommon::$subtotal

Inherited From Table

Table::$border
Table::$caption
Table::$cellpadding
Table::$cellspacing
Table::$class
Table::$summary
Table::$text
Table::$width

Inherited From Html

Html::$elements
Html::$sizeof

Inherited From Object

Object::$cachefile
Object::$html
Object::$sql

Inherited From ViewCommon

ViewCommon::ViewCommon()
Constructor
ViewCommon::display()
Display html
ViewCommon::getColumn()
Return the column data as html <tr><td>header 1</td><td>data 1</td></tr> ...
ViewCommon::getData()
Return the header or data for a list view
ViewCommon::getHtml()
Return the html
ViewCommon::getPrimaryKey()
The Primary key
ViewCommon::getRow()
Return the row data as html <tr><td>data 1</td><td>data 2</td><td>data ns</td></tr> ...

Inherited From Table

Table::Table()
Constructor
Table::display()
Display html
Table::end()
Get the end of the table tag
Table::getColumnEnd()
Get the Column End
Table::getColumnStart()
Get the Column Start
Table::getEnd()
Get the table end
Table::getHtml()
Get the complete html for a table
Table::getRowEnd()
Get the Row End
Table::getRowStart()
Get the Row Start
Table::getStart()
Get the start of the table
Table::getTableHeader()
Get the Table Header from class TableHeader
Table::start()
Get the start of the table tag
Table::td()
Display html for the TD tag
Table::tdend()
Get the end of the TD tag
Table::tdstart()
Get the start of the TD tag
Table::th()
Display html for a TH
Table::thend()
Get the end of the TH tag
Table::thstart()
Get the start of the TH tag
Table::tr()
Display html for the TR tag
Table::trend()
Get the end of the TR tag
Table::trstart()
Get the start of the TR tag

Inherited From Html

Html::Html()
Constructor
Html::add()
Add an element, the number of elements are stored internally in an array.
Html::content()
Read the content of the specified filename
Html::display()
Display the html
Html::get()
Get the complete html for a key
Html::getAttribute()
Get the complete html for an attribute, i.e. <a class="myclass" ...
Html::getElement()
Get the element at position $i in array
Html::getElements()
Get all the elements as html
Html::getHtml()
Get Html
Html::getHtmlHelp()
Get html help
Html::getSizeof()
Get the number of elements added
Html::getTag()
Get the complete html for a html tag, i.e. <p>My paragraph</p>
Html::read()
Read the content of the specified filename and language
Html::set()
Set the named attribute (key) of a class to specified value
Html::setObject()
Set the named object to the class attribute (key), with same name
Html::showsource()
Show source
Html::update()
Save the content of the specified filename and language

Inherited From Object

Object::Object()
Constructor
Object::addHtml()
Add the current html to the SourceCode object
Object::getCacheFileName()
Returns the name of the cache file name
Object::getClassName()
Returns the name of the instanciated class
Object::getHtml()
Returns the html for the element
Object::getMsg()
Get the formatted message and debug level and Log to file ?
Object::save()
Save the SQL cache file
Object::setCacheFileName()
Set the path/name of the cache file
Object::toString()
Returns the information for this class
Object::write()
Write the content to the file opened by fp

[ Top ]
Method Summary
ViewForm   ViewForm()   Constructor
void   display()   Display html
Object   getButtons()   Return the Buttons as html
Object   getElement()   Return the Label and TexField as an object
String   getHtml()   Return the html
Object   getRow()   Return the html
String   getRows()   Return the html
Object   getSubmitButton()   You may override this method, in order to create your own

[ Top ]
Methods
Constructor ViewForm  [line 71]

  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


[ Top ]
display  [line 337]

  void display( DataReader $datareader, [String $text = ''], [String $width = ''], [String $class = ''], [String $border = ''], [String $cellpadding = ''], [String $cellspacing = ''], [String $summary = ''], [String $caption = '']  )

Display html

  1. Usage:
  2. 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:
Static:  


Redefinition of:
ViewCommon::display()
Display html

Redefined in descendants as:

[ Top ]
getButtons  [line 114]

  Object getButtons( )

Return the Buttons as html


API Tags:
Return:  The html as an Object


[ Top ]
getElement  [line 139]

  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

[ Top ]
getHtml  [line 295]

  String getHtml( )

Return the html


API Tags:
Return:  The html


Redefinition of:
ViewCommon::getHtml()
Return the html

[ Top ]
getRow  [line 169]

  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> ...

[ Top ]
getRows  [line 258]

  String getRows( array $row, int $numrows  )

Return the html

Parameters:
array   $row:  The rows to loop
int   $numrows:  The number of rows

API Tags:
Return:  The html


[ Top ]
getSubmitButton  [line 89]

  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:

[ Top ]

Documentation generated on Thu, 22 Dec 2005 17:21:47 +0100 by phpDocumentor 1.3.0RC3