Documentation

Horde_Registry_Hordeconfig_Merged extends Horde_Registry_Hordeconfig
in package

Represents the merged configuration of an application with the base Horde configuration.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2014-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

since
2.12.0

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

$_config

The config data.

protected array<string|int, mixed> $_config

$_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.

getIterator()

public getIterator() : Traversable
Return values
Traversable

offsetExists()

public offsetExists(mixed $offset) : mixed
Parameters
$offset : mixed

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed

offsetSet()

public offsetSet(mixed $offset, mixed $value) : mixed
Parameters
$offset : mixed
$value : mixed

offsetUnset()

public offsetUnset(mixed $offset) : mixed
Parameters
$offset : mixed

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.


        
On this page

Search results