\Horde_Core_Factory_Imsp

A Horde_Injector:: based Horde_Imsp:: factory.

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()
No public properties found
No constants found
_getDriverName()
_factory()
$_injector
$_instances
N/A
No private methods found
No private properties found
N/A

Properties

$_injector

$_injector : \Horde_Injector

The injector.

Type

\Horde_Injector

$_instances

$_instances : array

The instance cache

Type

array

Methods

__construct()

__construct(\Horde_Injector  $injector) 

Constructor

Parameters

\Horde_Injector $injector

The injector to use.

create()

create(\type  $driver = null, array  $params = array()) : \Horde_Imsp

Create an instance of a Horde_Imsp class.

Parameters

\type $driver

The driver type.

array $params

Driver params.

Returns

\Horde_Imsp —

The Horde_Imsp object

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

_factory()

_factory(string  $driver = null, array  $params = array()) : mixed

Factory method

Parameters

string $driver

The driver type, leave empty for client connection

array $params

The driver parameters, leave empty to use default.

Throws

\Horde_Exception

Returns

mixed —

The Horde_Imsp object or Horde_Imsp_Client object.