Trait YamlRead
Methods summary
public static
integer
|
#
SetReadingFlags( integer $readingFlags )
Set globally MvcCore YAML Config reading flags.
Set globally MvcCore YAML Config reading flags.
Parameters
Returns
integer
|
public static
integer
|
#
GetReadingFlags( )
Get globally configured MvcCore YAML Config reading flags.
Get globally configured MvcCore YAML Config reading flags.
Returns
integer
|
public
boolean
|
#
Read( string $fullPath,…, boolean $systemConfig,… )
Load config file and return TRUE for success or FALSE in failure.
- Second environment value setup:
- Only if $this->system property is defined as TRUE.
- By defined client IPs, server hostnames or environment variables
in environments section. By values or regular expressions.
- Load also environment specific config files and merge with already loaded data.
- Return all raw string values as array, float, int or boolean types.
- Retype whole values level into \stdClass, if there are no numeric keys.
Load config file and return TRUE for success or FALSE in failure.
- Second environment value setup: - Only if $this->system property is defined as TRUE. - By defined client IPs, server hostnames or environment variables in environments section. By values or regular expressions.
- Load also environment specific config files and merge with already loaded data.
- Return all raw string values as array, float, int or boolean types.
- Retype whole values level into \stdClass, if there are no numeric keys.
Parameters
- $fullPath,…
- $systemConfig,…
Returns
boolean
|
protected
|
#
readYamlObjectTypes( array & $objectTypes, string & $data, $levelKey )
Process all decoded YAML arrays and detect if there are all keys numeric
or not. If there is no numeric key, convert that array into \stdClass.
Process all decoded YAML arrays and detect if there are all keys numeric
or not. If there is no numeric key, convert that array into \stdClass.
Parameters
- $objectTypes
- $data
- $data
- $levelKey
- $levelKey
|
Properties summary
protected static
integer
|
$readingFlags
Global flags configuration for YAML reading.
Global flags configuration for YAML reading.
|
|