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

JSON Class Reference
[Helper Classes]

List of all members.

Detailed Description

JSON function abstraction.

this class is a static wrapper for json that allows us to use it without having to worry about whether JSON is compiled in or not. for more info on JSON, visit http://www.json.org

Definition at line 10 of file json.inc.php.

Static Public Member Functions

 encode ($var)
 this encodes data into JSON format
 decode ($text)
 this decodes a JSON string to a PHP object


Member Function Documentation

JSON::decode text  )  [static]
 

this decodes a JSON string to a PHP object

Parameters:
$text the JSON string
Returns:
a php variable from that data.

Definition at line 29 of file json.inc.php.

JSON::encode var  )  [static]
 

this encodes data into JSON format

Parameters:
$var any PHP variable to encode.
Returns:
the JSON encoded string.

Definition at line 18 of file json.inc.php.

Referenced by JSONTemplate::drawError(), ObjectManager::drawJSONOutput(), BaseObject::drawJSONPage(), BaseMap::drawLookupPage(), and JSONTemplate::drawStatus().


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