Methods
All methods in the Solar_Json
class.
Public
-
__construct()
-
Constructor.
-
__destruct()
-
Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
-
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
-
_buildConfig()
-
Builds and returns the default config for a class, including all configs inherited from its parents.
-
_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'.
-
_postConfig()
-
A hook that activates after _buildConfig() in the constructor.
-
_postConstruct()
-
A hook that activates at the end of the constructor.
-
_preConfig()
-
A hook that activates before _buildConfig() in the constructor.
-
_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.