|
Previous Page |
Solar_Json |
Next Page |
Methods
Public
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
apiVersion()- Reports the API version for this class.
decode()- Decodes the $encodedValue string which is encoded in the JSON format.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
encode()- Encodes the mixed $valueToEncode into JSON format.
locale()- Looks up class-specific locale strings based on a key.
Protected
_deQuote()- Accepts a JSON-encoded string, and removes quotes around values of keys specified in the $keys array.
_exception()- Convenience method for returning exceptions with localized text.
_json_decode()- Decodes a JSON string into appropriate variable.
_json_encode()- Encodes the mixed $valueToEncode into the JSON format, without use of native PHP json extension.
_name_value()- Array-walking method for use in generating JSON-formatted name-value pairs in the form of '"name":value'.
_reduce_string()- Reduce a string by removing leading and trailing comments and whitespace.
_stripvalueslashes()- Method for use with preg_replace_callback in the _deQuote() method.
_utf162utf8()- Convert a string from one UTF-16 char to one UTF-8 char.
_utf82utf16()- Convert a string from one UTF-8 char to one UTF-16 char.
Private
None.