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.

Parameters

mixed $child Child ConfigOption object.
array $config Array of options.

Return Value

mixed

Exceptions

InvalidConfigValue
InvalidConfigProperty

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.

Parameters

string $keyName Key name to be applied to generated array.

Return Value

array Assoc. array of the options of the object.

at line 115
array getValues()

Same as toArray, but without the class name as a key to being multi-dimension.

Return Value

array Array of the options of the object.