Trait YamlDump
Methods summary
public static
integer
|
#
SetDumpingFlags( integer $dumpingFlags )
Set globally MvcCore YAML Config dumping flags.
Set globally MvcCore YAML Config dumping flags.
Parameters
Returns
integer
|
public static
integer
|
#
GetDumpingFlags( )
Get globally configured MvcCore YAML Config dumping flags.
Get globally configured MvcCore YAML Config dumping flags.
Returns
integer
|
public
bool|string
|
#
Dump( )
Dump all configuration data in YAML format. There will not be included
any other data for different environment. You need to save different
configuration file separately. Return string with dumped XAML config
or boolean FALSE of there was an error about strange data to encode.
Dump all configuration data in YAML format. There will not be included
any other data for different environment. You need to save different
configuration file separately. Return string with dumped XAML config
or boolean FALSE of there was an error about strange data to encode.
Returns
bool|string
|
protected
mixed
|
#
dumpYamlObjectTypes( mixed & $data, integer & $maxLevel, integer $level = 0 )
Before encode all data into YAML format, convert all \stdClass objects
recursively into arrays. YAML encoder could encode only array types.
Before encode all data into YAML format, convert all \stdClass objects
recursively into arrays. YAML encoder could encode only array types.
Parameters
Returns
mixed
|
Properties summary
protected static
integer
|
$dumpingFlags
Global flags configuration for YAML dumping.
Global flags configuration for YAML dumping.
|
|