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

Class: EngineObject

Source Location: /myphp-1.9/myphp-1.9-mvc/html/controller/EngineObject.php

Class EngineObject

Class Overview

The EngineObject is the base class for other engines

You must override this class

  1. Usage:
  2. $engine = new EngineObject($sql,$name);
  3. print $engine->getHtml();
  4. Or
  5. EngineObject::display($sql,$name);

Located in /myphp-1.9/myphp-1.9-mvc/html/controller/EngineObject.php [line 34]

Object
   |
   --Html
      |
      --EngineObject

Properties

Methods

[ Top ]
Direct descendents
Child Class Description
Engine The Engine is the controller for other EngineXyz objects

[ 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   $name  
String   $sql  

[ Top ]
Method Summary
EngineObject   EngineObject()   Constructor
void   display()   Display html
String   doGet()   Get the complete html for a GET request
String   dogetView()   Get the complete html for a list or form view
String   doPost()   Get the complete html for a POST request
String   execute()   Executes the query specified by $command
String   getHtml()   '

[ Top ]
Properties
String   $name = '' [line 43]

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

Redefinition of:
Object::$sql

[ Top ]
Methods
Constructor EngineObject  [line 50]

  EngineObject EngineObject( [String $sql = ''], [String $name = '']  )

Constructor

Parameters:
String   $sql:  The SQL to excute
String   $name:  The Engine Name to use


[ Top ]
display  [line 310]

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

Display html

  1. Usage:
  2. EngineObject::display($sql,$name);

Parameters:
String   $sql:  The SQL to excute
String   $name:  The Engine Name to use

API Tags:
Static:  


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

Redefined in descendants as:

[ Top ]
doGet  [line 60]

  String doGet( )

Get the complete html for a GET request


API Tags:
Return:  The html


[ Top ]
dogetView  [line 100]

  String dogetView( String $command, [String $viewtype = '']  )

Get the complete html for a list or form view

Parameters:
String   $command:  The Command to use
String   $viewtype:  The View type to use OR use $command name

API Tags:
Return:  The html


[ Top ]
doPost  [line 139]

  String doPost( )

Get the complete html for a POST request


API Tags:
Return:  The html


[ Top ]
execute  [line 165]

  String execute( String $command  )

Executes the query specified by $command

Parameters:
String   $command:  The command to execute, i.e. insert, delete or update

API Tags:
Return:  The html


[ Top ]
getHtml  [line 290]

  String getHtml( )

'

Execute a specified command and Get the complete html for a table list view of form view


API Tags:
Return:  The html


Redefinition of:
Html::getHtml()
Get Html

[ Top ]

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