Horde_Registry_Hordeconfig_Merged
extends Horde_Registry_Hordeconfig
in package
Represents the merged configuration of an application with the base Horde configuration.
Tags
Table of Contents
Properties
- $app : array<string|int, mixed>
- The application.
- $_aconfig : Horde_Registry_Hordeconfig
- Application configuration.
- $_config : array<string|int, mixed>
- The config data.
- $_hconfig : Horde_Registry_Hordeconfig
- Horde configuration.
- $_merged : bool
- Indicates whether config is fully merged.
Methods
- __construct() : mixed
- Constructor.
- count() : mixed
- getIterator() : Traversable
- offsetExists() : mixed
- offsetGet() : mixed
- offsetSet() : mixed
- offsetUnset() : mixed
- toArray() : array<string|int, mixed>
- Return the array representation of the configuration.
- _load() : mixed
- Load configuration from config file.
- _merge() : array<string|int, mixed>
- Merge configurations between two applications.
Properties
$app
The application.
public
array<string|int, mixed>
$app
$_aconfig
Application configuration.
protected
Horde_Registry_Hordeconfig
$_aconfig
$_config
The config data.
protected
array<string|int, mixed>
$_config
$_hconfig
Horde configuration.
protected
Horde_Registry_Hordeconfig
$_hconfig
$_merged
Indicates whether config is fully merged.
protected
bool
$_merged
= \false
Methods
__construct()
Constructor.
public
__construct(array<string|int, mixed> $opts) : mixed
Parameters
- $opts : array<string|int, mixed>
-
Configuration options:
- aconfig: (Horde_Registry_Hordeconfig) Application config. - hconfig: (Horde_Registry_Hordeconfig) Horde config.
count()
public
count() : mixed
Attributes
- #[ReturnTypeWillChange]
getIterator()
public
getIterator() : Traversable
Return values
TraversableoffsetExists()
public
offsetExists(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
offsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : mixed
Parameters
- $offset : mixed
- $value : mixed
Attributes
- #[ReturnTypeWillChange]
offsetUnset()
public
offsetUnset(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
toArray()
Return the array representation of the configuration.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Configuration array.
_load()
Load configuration from config file.
protected
_load(mixed $offset) : mixed
Parameters
- $offset : mixed
-
Offset.
_merge()
Merge configurations between two applications.
protected
_merge(array<string|int, mixed> $a1, array<string|int, mixed> $a2) : array<string|int, mixed>
See Bug #10381.
Parameters
- $a1 : array<string|int, mixed>
-
Horde configuration.
- $a2 : array<string|int, mixed>
-
App configuration.
Return values
array<string|int, mixed> —Merged configuration.