ConfigObject
class ConfigObject (View source)
Methods
mixed
__construct(
mixed $child,
array $config)
Builds the ConfigOptions object.
array
toArray(
string $keyName = null)
Returns an array representation of the object.
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.
Details
at line 51
mixed
__construct(
mixed $child,
array $config)
Builds the ConfigOptions object.
Passing an array of key value pairs will set the configuration for each child object created from this parent object.
at line 93
array
toArray(
string $keyName = null)
Returns an array representation of the object.
If passed a label, then the array will be returned with the label as the key.
Called with no label returns an array with the classname as the key.
at line 115
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.