Zend_Json_EncoderEncode PHP constructs to JSON
Located in /Zend/Json/Encoder.php (line 34)
Constructor __construct (line 46)
Constructor
encode (line 56)
Use the JSON encoding scheme for the value specified
encodeClass (line 365)
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
encodeClasses (line 388)
Encode several classes at once
Returns JSON encoded classes, using encodeClass().
_encodeArray (line 149)
JSON encode an array value
Recursively encodes each value of an array and returns a JSON encoded array string.
_encodeConstants (line 241)
Encode the constants associated with the ReflectionClass parameter. The encoding format is based on the class2 format
_encodeDatum (line 195)
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.
_encodeMethods (line 267)
Encode the public methods of the ReflectionClass in the class2 format
_encodeObject (line 97)
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 217)
JSON encode a string value by escaping characters as necessary
_encodeValue (line 73)
Recursive driver which determines the type of value to be encoded
and then dispatches to the appropriate method. $values are either
_encodeVariables (line 331)
Encode the public properties of the ReflectionClass in the class2 format.
_wasVisited (line 130)
Determine if an object has been serialized already
Documentation generated on Tue, 18 Apr 2006 11:54:47 -0700 by phpDocumentor 1.3.0RC3