PHP Class Horde_Core_Factory_ImspAuth, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Datei anzeigen Open project: horde/horde

Protected Properties

Property Type Description
$_injector Horde_Injector
$_instances array Instance cache

Public Methods

Method Description
__construct ( Horde_Injector $injector ) Constructor
create ( string $driver, array $params = [] ) : Horde_Imsp_Auth Attempts to return a concrete Horde_Imsp_Auth instance based on $driver.

Protected Methods

Method Description
_factory ( string $driver, array $params = [] ) : mixed Attempts to return a concrete Horde_Imsp_Auth instance based on $driver Must be called as &Horde_Imsp_Auth::factory()

Method Details

__construct() public method

Constructor
public __construct ( Horde_Injector $injector )
$injector Horde_Injector

_factory() protected static method

Attempts to return a concrete Horde_Imsp_Auth instance based on $driver Must be called as &Horde_Imsp_Auth::factory()
protected static _factory ( string $driver, array $params = [] ) : mixed
$driver string Type of Horde_Imsp_Auth subclass to return.
$params array
return mixed The created Horde_Imsp_Auth subclass.

create() public static method

Will only create a new object if one with the same parameters already does not exist.
public static create ( string $driver, array $params = [] ) : Horde_Imsp_Auth
$driver string Type of IMSP_Auth subclass to return.
$params array The driver parameters.
return Horde_Imsp_Auth

Property Details

$_injector protected_oe property

protected Horde_Injector $_injector
return Horde_Injector

$_instances protected_oe static_oe property

Instance cache
protected static array $_instances
return array