\Horde_Core_Factory_ImspAuth

A Horde_Injector:: based Horde_Imsp_Auth:: 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
_factory()
$_instances
$_injector
N/A
No private methods found
No private properties found
N/A

Properties

$_instances

$_instances : array

Instance cache

Type

array

$_injector

$_injector : \Horde_Injector

Type

\Horde_Injector

Methods

__construct()

__construct(\Horde_Injector  $injector) 

Constructor

Parameters

\Horde_Injector $injector

create()

create(string  $driver, array  $params = array()) : \Horde_Imsp_Auth

Attempts to return a concrete Horde_Imsp_Auth instance based on $driver.

Will only create a new object if one with the same parameters already does not exist.

Parameters

string $driver

Type of IMSP_Auth subclass to return.

array $params

The driver parameters.

Returns

\Horde_Imsp_Auth

_factory()

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

Attempts to return a concrete Horde_Imsp_Auth instance based on $driver Must be called as &Horde_Imsp_Auth::factory()

Parameters

string $driver

Type of Horde_Imsp_Auth subclass to return.

array $params

Throws

\Horde_Exception

Returns

mixed —

The created Horde_Imsp_Auth subclass.