[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Source view] [Print] [Project Stats]
Zend Framework LICENSE
Copyright: | Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com) |
License: | http://framework.zend.com/license/new-bsd New BSD License |
File Size: | 414 lines (12 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 1 file include/Zend/Json/Exception.php |
Zend_Json_Encoder:: (13 methods):
__construct()
encode()
_encodeValue()
_encodeObject()
_wasVisited()
_encodeArray()
_encodeDatum()
_encodeString()
_encodeConstants()
_encodeMethods()
_encodeVariables()
encodeClass()
encodeClasses()
Class: Zend_Json_Encoder - X-Ref
Encode PHP constructs to JSON__construct($cycleCheck = false) X-Ref |
Constructor param: boolean $cycleCheck Whether or not to check for recursion when encoding return: void |
encode($value, $cycleCheck = false) X-Ref |
Use the JSON encoding scheme for the value specified param: mixed $value The value to be encoded param: boolean $cycleCheck Whether or not to check for possible object recursion when encoding return: string The encoded value |
_encodeValue(&$value) X-Ref |
Recursive driver which determines the type of value to be encoded and then dispatches to the appropriate method. $values are either - objects (returns from {@link _encodeObject()}) - arrays (returns from {@link _encodeArray()}) - basic datums (e.g. numbers or strings) (returns from {@link _encodeDatum()}) param: $value mixed The value to be encoded return: string Encoded value |
_encodeObject(&$value) X-Ref |
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. param: $value object return: string |
_wasVisited(&$value) X-Ref |
Determine if an object has been serialized already param: mixed $value return: boolean |
_encodeArray(&$array) X-Ref |
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. param: $array array return: string |
_encodeDatum(&$value) X-Ref |
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. param: $value mixed return: string |
_encodeString(&$string) X-Ref |
JSON encode a string value by escaping characters as necessary param: $value string return: string |
_encodeConstants(ReflectionClass $cls) X-Ref |
Encode the constants associated with the ReflectionClass parameter. The encoding format is based on the class2 format param: $cls ReflectionClass return: string Encoded constant block in class2 format |
_encodeMethods(ReflectionClass $cls) X-Ref |
Encode the public methods of the ReflectionClass in the class2 format param: $cls ReflectionClass return: string Encoded method fragment |
_encodeVariables(ReflectionClass $cls) X-Ref |
Encode the public properties of the ReflectionClass in the class2 format. param: $cls ReflectionClass return: string Encode properties list |
encodeClass($className, $package = '') X-Ref |
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 param: $className string The name of the class, the class must be param: $package string Optional package name appended to JavaScript return: string The class2 (JavaScript) encoding of the class |
encodeClasses(array $classNames, $package = '') X-Ref |
Encode several classes at once Returns JSON encoded classes, using {@link encodeClass()}. param: array $classNames param: string $package return: string |
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |