Zend_Config_Json::__construct
Loads the section $section from the config file encoded as JSON
Sections are defined as properties of the main object In order to extend another section, a section defines the "_extends" property having a value of the section name from which the extending section inherits values. Note that the keys in $section will override any keys of the same name in the sections that have been included via "_extends".
Signature
public function __construct(string
$json,
[mixed
$section = null,
[boolean
$options = false]] )
Parameters
-
$json
- JSON file or string to process
-
$section
- Section to process
-
$options
- Whether modifiacations are allowed at runtime
Errors/Exceptions
-
Zend_Config_Exception
- When JSON text is not set or cannot be loaded
-
Zend_Config_Exception
- When section $sectionName cannot be found in $json
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
82 - 174 | CyclomaticComplexity | The method __construct() has a Cyclomatic Complexity of 22. The configured cyclomatic complexity threshold is 10. |
82 - 174 | NPathComplexity | The method __construct() has an NPath complexity of 2880. The configured NPath complexity threshold is 200. |