Class Repository
A class to access your items in dot notation.
-
Docolight\Support\Repository
implements
ArrayAccess
Methods summary
public
|
#
__construct( array $items = array() )
Create a new configuration repository.
Create a new configuration repository.
Parameters
|
public
boolean
|
#
has( string $key )
Determine if the given configuration value exists.
Determine if the given configuration value exists.
Parameters
Returns
boolean
|
public
mixed
|
#
get( string $key, mixed $default = null )
Get the specified configuration value.
Get the specified configuration value.
Parameters
Returns
mixed
|
public
|
#
set( array|string $key, mixed $value = null )
Set a given configuration value.
Set a given configuration value.
Parameters
|
public
|
#
prepend( string $key, mixed $value )
Prepend a value onto an array configuration value.
Prepend a value onto an array configuration value.
Parameters
|
public
|
#
push( string $key, mixed $value )
Push a value onto an array configuration value.
Push a value onto an array configuration value.
Parameters
|
public
array
|
#
all( )
Get all of the configuration items for the application.
Get all of the configuration items for the application.
Returns
array
|
public
boolean
|
#
offsetExists( string $key )
Determine if the given configuration option exists.
Determine if the given configuration option exists.
Parameters
Returns
boolean
Implementation of
ArrayAccess::offsetExists()
|
public
mixed
|
#
offsetGet( string $key )
Get a configuration option.
Get a configuration option.
Parameters
Returns
mixed
Implementation of
ArrayAccess::offsetGet()
|
public
|
#
offsetSet( string $key, mixed $value )
Set a configuration option.
Set a configuration option.
Parameters
Implementation of
ArrayAccess::offsetSet()
|
public
|
#
offsetUnset( string $key )
Unset a configuration option.
Unset a configuration option.
Parameters
Implementation of
ArrayAccess::offsetUnset()
|
Properties summary
protected
array
|
$items
All of the configuration items.
All of the configuration items.
|
|