[ 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: | 457 lines (14 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 2 files include/Zend/Json.php include/Zend/Json/Exception.php |
Zend_Json_Decoder:: (7 methods):
__construct()
decode()
_decodeValue()
_decodeObject()
_decodeArray()
_eatWhitespace()
_getNextToken()
Class: Zend_Json_Decoder - X-Ref
Decode JSON encoded string to PHP variable constructs__construct($source, $decodeType) X-Ref |
Constructor param: string $source String source to decode param: int $decodeType How objects should be decoded -- see return: void |
decode($source = null, $objectDecodeType = Zend_Json::TYPE_ARRAY) X-Ref |
Decode a JSON source string Decodes a JSON encoded string. The value returned will be one of the following: - integer - float - boolean - null - StdClass - array - array of one or more of the above types By default, decoded objects will be returned as associative arrays; to return a StdClass object instead, pass {@link Zend_Json::TYPE_OBJECT} to the $objectDecodeType parameter. Throws a Zend_Json_Exception if the source string is null. param: string $source String to be decoded param: int $objectDecodeType How objects should be decoded; should be return: mixed |
_decodeValue() X-Ref |
Recursive driving rountine for supported toplevel tops return: mixed |
_decodeObject() X-Ref |
Decodes an object of the form: { "attribute: value, "attribute2" : value,...} If ZJsonEnoder or ZJAjax was used to encode the original object then a special attribute called __className which specifies a class name that should wrap the data contained within the encoded source. Decodes to either an array or StdClass object, based on the value of {@link $_decodeType}. If invalid $_decodeType present, returns as an array. return: array|StdClass |
_decodeArray() X-Ref |
Decodes a JSON array format: [element, element2,...,elementN] return: array |
_eatWhitespace() X-Ref |
Removes whitepsace characters from the source input |
_getNextToken() X-Ref |
Retrieves the next token from the source stream return: int Token constant value specified in class definition |
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |