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

Class: Grid

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

Class Grid

Class Overview

Generates the html for a Grid

  1. Usage:
  2. $grid = new Grid($sql,$layout);
  3. print $grid->getHtml();
  4. Or
  5. Grid::display($sql,$layout);
  6.  
  7. Generates a complete grid 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/Grid.php [line 52]

Object
   |
   --Html
      |
      --Grid

Properties

Methods

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

Inherited From Html

Html::$elements
Html::$sizeof

Inherited From Object

Object::$cachefile
Object::$html

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 ]
Property Summary
String   $layout  
String   $sql  

[ Top ]
Method Summary
Grid   Grid()   Constructor
void   display()   Display html
String   getBasket()   Return the data as html Basket view
DataReader   getDataReader()   Return a DataReader object as a result of a command query
String   getDetail()   Return the data as a html Detail View
String   getForm()   Return the data as a html Form View
String   getGrid()   Return the data as a html GRID
String   getHtml()   Return the html
String   getLogin()   Return the data as a html Login View
String   getPlain()   Return the data as plain text
String   getXmlReader()   Return the data as XML Read data
String   getXmlWriter()   Return the data as XML Write data

[ Top ]
Properties
String   $layout = '' [line 61]

[ Top ]
String   $sql = '' [line 56]

Redefinition of:
Object::$sql

[ Top ]
Methods
Constructor Grid  [line 68]

  Grid Grid( String $sql, [String $layout = '']  )

Constructor

Parameters:
String   $sql:  The sql to use in the query
String   $layout:  The layout to use


[ Top ]
display  [line 203]

  void display( String $sql, [String $layout = '']  )

Display html

  1. Usage:
  2. Grid::display($sql,$layout);

Parameters:
String   $sql:  The sql to use in the query
String   $layout:  The layout to use

API Tags:
Static:  


Redefinition of:
Html::display()
Display the html

[ Top ]
getBasket  [line 123]

  String getBasket( )

Return the data as html Basket view


API Tags:
Return:  The html


[ Top ]
getDataReader  [line 78]

  DataReader getDataReader( )

Return a DataReader object as a result of a command query


API Tags:
Return:  The DataReader object


[ Top ]
getDetail  [line 114]

  String getDetail( )

Return the data as a html Detail View


API Tags:
Return:  The html


[ Top ]
getForm  [line 96]

  String getForm( )

Return the data as a html Form View


API Tags:
Return:  The html


[ Top ]
getGrid  [line 87]

  String getGrid( )

Return the data as a html GRID


API Tags:
Return:  The html


[ Top ]
getHtml  [line 159]

  String getHtml( )

Return the html


API Tags:
Return:  The html


Redefinition of:
Html::getHtml()
Get Html

[ Top ]
getLogin  [line 105]

  String getLogin( )

Return the data as a html Login View


API Tags:
Return:  The html


[ Top ]
getPlain  [line 132]

  String getPlain( )

Return the data as plain text


API Tags:
Return:  The html


[ Top ]
getXmlReader  [line 141]

  String getXmlReader( )

Return the data as XML Read data


API Tags:
Return:  The html


[ Top ]
getXmlWriter  [line 150]

  String getXmlWriter( )

Return the data as XML Write data


API Tags:
Return:  The html


[ Top ]

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