|
Previous Page |
Solar_Json |
Next Page |
Properties
Public
None.
Protected
$_Solar_Json
(array) User-defined configuration, primarily of use in unit testing.
Keys are ...
bypass_ext- (bool) Flag to instruct Solar_Json to bypass native json extension, if installed.
bypass_mb- (bool) Flag to instruct Solar_Json to bypass native mb_convert_encoding() function, if installed.
noerror- (bool) Flag to instruct Solar_Json to return null for values it cannot encode rather than throwing an exceptions (PHP-only encoding) or PHP warnings (native json_encode() function).
$_config
(array) Collection point for configuration values.
Inherited from Solar_Base.
Note that you do not define config defaults in $_config directly.
<?php
// DO NOT DO THIS
protected $_config = array(
'foo' => 'bar',
'baz' => 'dib',
);
?>
Instead, define config defaults in a protected property named for the class, withan underscore prefix.
For exmple, a "Vendor_Class_Name" class would define the default config array in "$_Vendor_Class_Name". This convention lets child classes inherit parent config keys and values.
<?php
// DO THIS INSTEAD
protected $_Vendor_Class_Name = array(
'foo' => 'bar',
'baz' => 'dib',
);
?>
$_level
(int) Nest level counter for determining correct behavior of decoding string representations of numbers and boolean values.
Private
None.