Zend_Json_EncoderEncode PHP constructs to JSON
Located in /Zend/Json/Encoder.php (line 36)
static encode (line 70)
Use the JSON encoding scheme for the value specified
static encodeClass (line 379)
Encodes the given $className into the class2 model of encoding PHP classes into JavaScript class2 classes.
NOTE: Currently only public methods and variables are proxied onto the client machine
static encodeClasses (line 402)
Encode several classes at once
Returns JSON encoded classes, using encodeClass().
Constructor __construct (line 58)
Constructor
_encodeArray (line 168)
JSON encode an array value
Recursively encodes each value of an array and returns a JSON encoded array string.
Arrays are defined as integer-indexed arrays starting at index 0, where the last index is (count($array) -1); any deviation from that is considered an associative array, and will be encoded as such.
_encodeDatum (line 208)
JSON encode a basic data type (string, number, boolean, null)
If value type is not a string, number, boolean, or null, the string 'null' is returned.
_encodeObject (line 111)
Encode an object to JSON by encoding each of the public properties
A special property is added to the JSON object called '__className' that contains the name of the class of $value. This is used to decode the object on the client into a specific class.
_encodeString (line 230)
JSON encode a string value by escaping characters as necessary
_encodeValue (line 87)
Recursive driver which determines the type of value to be encoded
and then dispatches to the appropriate method. $values are either
_wasVisited (line 145)
Determine if an object has been serialized already
Documentation generated on Wed, 21 Feb 2007 11:47:07 -0800 by phpDocumentor 1.3.1