Documentation

Turba_Factory_Driver extends Horde_Core_Factory_Base
in package

A Horde_Injector:: based Turba_Driver:: factory.

Copyright 2010-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (APL). If you did not receive this file, see http://www.horde.org/licenses/apl.html.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

license

http://www.horde.org/licenses/apl.html APL

Table of Contents

$_instances  : array<string|int, mixed>
Instances.
create()  : Turba_Driver
Return the Turba_Driver:: instance.
createFromConfig()  : Turba_Driver
Return the Turba_Driver:: instance.
_create()  : mixed

Properties

$_instances

Instances.

private array<string|int, mixed> $_instances = array()

Methods

create()

Return the Turba_Driver:: instance.

public create(string $name) : Turba_Driver
Parameters
$name : string

A string containing the internal name of this source.

Tags
throws
Turba_Exception
Return values
Turba_Driver

The singleton instance.

createFromConfig()

Return the Turba_Driver:: instance.

public createFromConfig(array<string|int, mixed> $config[, string $srcName = '' ][, array<string|int, mixed> $cfgSources = array() ]) : Turba_Driver
Parameters
$config : array<string|int, mixed>

A config array describing the source.

$srcName : string = ''

The internal name of this source.

$cfgSources : array<string|int, mixed> = array()

Override the global cfgSources configuration with this array. Used when an admin needs access to another user's sources like e.g., when calling removeUserData().

Tags
throws
Turba_Exception
Return values
Turba_Driver

The singleton instance.

_create()

private _create(mixed $key, mixed $srcConfig, mixed $srcName, mixed $cfgSources) : mixed
Parameters
$key : mixed
$srcConfig : mixed
$srcName : mixed
$cfgSources : mixed
Return values
mixed

Search results