Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

JSONTemplate Class Reference
[Template System]

Inheritance diagram for JSONTemplate:

BaseTemplate List of all members.

Detailed Description

JSON based template for easy AJAX sites.

it will draw your site, but give you the data in json format which you can use to show it however you want with javascript.

Definition at line 9 of file json-template.inc.php.

Public Member Functions

 drawPage ()
 This function draws the content area of the page.
 drawError ()
 This draws all the errors that the page init generated.
 drawStatus ()
 This draws all the status messages that the page init generated.


Member Function Documentation

JSONTemplate::drawError  ) 
 

This draws all the errors that the page init generated.

they are all wrapped in a

with class pf 'baseError' and an id of 'error-$key' where key is the key in the error array.

Reimplemented from BaseTemplate.

Definition at line 27 of file json-template.inc.php.

References JSON::encode().

Referenced by drawPage().

JSONTemplate::drawPage  ) 
 

This function draws the content area of the page.

Reimplemented from BaseTemplate.

Definition at line 14 of file json-template.inc.php.

References BaseTemplate::drawContent(), drawError(), and drawStatus().

JSONTemplate::drawStatus  ) 
 

This draws all the status messages that the page init generated.

they are all wrapped in a

with class pf 'baseStatus' and an id of 'status-$key' where key is the key in the status array.

Reimplemented from BaseTemplate.

Definition at line 36 of file json-template.inc.php.

References JSON::encode().

Referenced by drawPage().


The documentation for this class was generated from the following file:
Generated on Fri Oct 27 12:26:41 2006 for BaseJumper by doxygen 1.3.9.1