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

Class: ViewLogin

Source Location: /myphp-1.9/myphp-1.9-mvc/html/view/ViewLogin.php

Class ViewLogin

Class Overview

Generates the html for a View Login Form

  1. Usage:
  2. $view = new ViewLogin($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
  3. print $view->getHtml();
  4. Or
  5. ViewLogin::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/ViewLogin.php [line 42]

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

Methods

[ 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 ViewForm

ViewForm::ViewForm()
Constructor
ViewForm::display()
Display html
ViewForm::getButtons()
Return the Buttons as html
ViewForm::getElement()
Return the Label and TexField as an object
ViewForm::getHtml()
Return the html
ViewForm::getRow()
Return the html
ViewForm::getRows()
Return the html
ViewForm::getSubmitButton()
You may override this method, in order to create your own

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
ViewLogin   ViewLogin()   Constructor
void   display()   Display html
Object   getSubmitButton()   Return the Submit Button as html

[ Top ]
Methods
Constructor ViewLogin  [line 55]

  ViewLogin ViewLogin( 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 96]

  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. ViewLogin::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:
ViewForm::display()
Display html

[ Top ]
getSubmitButton  [line 72]

  Object getSubmitButton( )

Return the Submit Button as html


API Tags:
Return:  The html as an Object
Abstract:  


Redefinition of:
ViewForm::getSubmitButton()
You may override this method, in order to create your own

[ Top ]

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