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

Class: ViewBasket

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

Class ViewBasket

Class Overview

Generates the html for a View Basket

  1. Usage:
  2. $view = new ViewBasket($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
  3. print $view->getHtml();
  4. Or
  5. ViewBasket::display($datareader,$text,$width,$class,$border,$cellpadding,$cellspacing,$summary,$caption);
  6.  
  7. Generates a complete View List interface
  8. +--------------------------------
  9. | Text header
  10. +--------------------------------
  11. | head1 | head2 | head3 | etc.
  12. +--------------------------------
  13. | dat_1 | dat_2 | dat_3 | etc.
  14. +--------------------------------

Located in /myphp-1.9/myphp-1.9-mvc/html/view/ViewBasket.php [line 38]

Object
   |
   --Html
      |
      --Table
         |
         --ViewCommon
            |
            --ViewList
               |
               --ViewBasket

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 ViewList

ViewList::ViewList()
Constructor
ViewList::display()
Display html
ViewList::getHtml()
Return the html
ViewList::getSubtotal()
Return the subtotal as html, like a basket or invoice

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
ViewBasket   ViewBasket()   Constructor
void   display()   Display html
Object   getPrimaryKey()   The Primary key
String   getSubtotal()   Return the subtotal as html

[ Top ]
Methods
Constructor ViewBasket  [line 51]

  ViewBasket ViewBasket( 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 142]

  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. ViewBasket::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:
ViewList::display()
Display html

[ Top ]
getPrimaryKey  [line 72]

  Object getPrimaryKey( String $key, String $value, mixed $css, boolean $isHeader, String $rowcolor  )

The Primary key

Parameters:
String   $key:  The key to use
String   $value:  The value to use
String   $rowcolor:  The CSS class to use
boolean   $isHeader:  Is a header, if true

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


Redefinition of:
ViewCommon::getPrimaryKey()
The Primary key

[ Top ]
getSubtotal  [line 103]

  String getSubtotal( String $colspan  )

Return the subtotal as html

Parameters:
String   $colspan:  The colspan to use

API Tags:
Return:  The html
Abstract:  


Redefinition of:
ViewList::getSubtotal()
Return the subtotal as html, like a basket or invoice

[ Top ]

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