Methods summary
public
string
|
#
Dump( )
Returns
string
Inheritdocs
|
protected static
|
#
dumpSplitData( MvcCore\IConfig $config, array & $environmentNames )
Split data into environment specific collections from $config->mergedData .
Split data into environment specific collections from $config->mergedData .
Parameters
- $config
- Config instance.
- $environmentNames
- All detected environment names in merged configuration data.
|
protected static
array
|
#
dumpCastToArrayRecursive( stdClass|array $obj )
Cast any \stdClass in configuration structure into array recursively.
Cast any \stdClass in configuration structure into array recursively.
Parameters
Returns
array
|
protected static
|
#
dumpSplitDataRecursive( stdClass $currentMerged, stdClass $currentSeparated, array & $allEnvNames )
Split data into nevironment specific collections from $config->mergedData recursively.
Split data into nevironment specific collections from $config->mergedData recursively.
Parameters
- $currentMerged
- Collection with all detected environments and it's recursive level for merged collection.
- $currentSeparated
- Collection with all detected environments and it's recursive level for splited collections.
- $allEnvNames
- All detected environments in configuration.
|
protected static
array
|
#
dumpSplitDataKeys( stdClass $currentMerged, array & $environmentNames )
Return common keys and environment specific keys for all nevironment values levels.
Return common keys and environment specific keys for all nevironment values levels.
Parameters
- $currentMerged
- Recursive level of values from
$config->mergedData .
- $environmentNames
- Environment names found in configuration.
Returns
array [all common environment keys, environment specific keys]
|
protected static
array
|
#
dumpSplitDataCompareValues( mixed[] & $compareValues, string[] & $environmentNames )
Compare given values for all environments
and return specific info about comparison.
Compare given values for all environments
and return specific info about comparison.
Parameters
- $compareValues
- $environmentNames
- Environment names found in configuration.
Returns
array [common env. value, boolean about if all env. values are the same, boolean about if values are scalar]
|
protected static
string
|
#
dumpRenderEnvData( MvcCore\IConfig $config, array & $environmentNames )
Render splitted data from environment specific collections ($config->envData )
into INI syntax with environment specific sections, optionally grouped.
Render splitted data from environment specific collections ($config->envData )
into INI syntax with environment specific sections, optionally grouped.
Parameters
- $config
- Config instance.
- $environmentNames
- All detected environment names in merged configuration data.
Returns
string
|
protected static
boolean
|
#
dumpDetectSections( MvcCore\IConfig $config, array & $environmentNames )
Detect if protected collection $config->envData needs sections.
Detect if protected collection $config->envData needs sections.
Parameters
- $config
- Config instance.
- $environmentNames
- All detected environment names in merged configuration data.
Returns
boolean
|
protected static
|
#
dumpRenderRecursive( string[] & $rawData, array & $data, integer $level, string $levelKey = '', boolean $sequentialKeys = FALSE )
Dump recursive with dot syntax any PHP object/array data into INI syntax.
Dump recursive with dot syntax any PHP object/array data into INI syntax.
Parameters
- $rawData
- $data
- $level
- $levelKey
- $sequentialKeys
|
protected static
string
|
#
dumpRenderScalar( mixed $value )
Dump any scalar value into INI syntax by special local static
configuration array.
Dump any scalar value into INI syntax by special local static
configuration array.
Parameters
Returns
string
|
protected static
array
|
#
dumpGroupEnvSectionData( MvcCore\IConfig $config, string $sectionName, string[] $environmentNames )
Try to found the same configuration records accross all environment specific data collections.
Try to found the same configuration records accross all environment specific data collections.
Parameters
- $config
- $sectionName
- $environmentNames
Returns
array
|