\Horde_Core_Factory_Nosql

A Horde_Injector based factory for creating Nosql objects.

This class is used for factories that are intended to have their create() methods manually called by code.

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

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

Summary

Methods
Properties
Constants
__construct()
create()
getConfig()
createNosql()
No public properties found
No constants found
_getDriverName()
$_injector
N/A
No private methods found
$_instances
N/A

Properties

$_injector

$_injector : \Horde_Injector

The injector.

Type

\Horde_Injector

$_instances

$_instances : array

Instances.

Type

array

Methods

__construct()

__construct(\Horde_Injector  $injector) 

Constructor.

Parameters

\Horde_Injector $injector

The injector to use.

create()

create(string  $app = 'horde', string|array  $backend = null) : mixed

Returns the instance.

Parameters

string $app

The application.

string|array $backend

The backend, see Horde::getDriverConfig(). If this is an array, this is used as the configuration array.

Throws

\Horde_Exception

Returns

mixed —

The singleton instance.

getConfig()

getConfig(  $backend) 

Parameters

$backend

createNosql()

createNosql(  $config) 

Parameters

$config

Throws

\Horde_Exception

_getDriverName()

_getDriverName(string  $driver, string  $base) : string

Return the classname of the driver to load.

Parameters

string $driver

Driver name.

string $base

The base classname.

Throws

\Horde_Exception

Returns

string —

Classname.