Documentation

Horde_Core_Factory_ImspAuth
in package

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.

Tags
category

Horde

author

Michael J Rubinsky mrubinsk@horde.org

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

Properties

$_injector  : Horde_Injector
$_instances  : array<string|int, mixed>
Instance cache

Methods

__construct()  : mixed
Constructor
create()  : Horde_Imsp_Auth
Attempts to return a concrete Horde_Imsp_Auth instance based on $driver.
_factory()  : mixed
Attempts to return a concrete Horde_Imsp_Auth instance based on $driver Must be called as &Horde_Imsp_Auth::factory()

Properties

$_injector

protected Horde_Injector $_injector

$_instances

Instance cache

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

Methods

__construct()

Constructor

public __construct(Horde_Injector $injector) : mixed
Parameters
$injector : Horde_Injector

create()

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

public static create(string $driver[, array<string|int, mixed> $params = array() ]) : Horde_Imsp_Auth

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

Parameters
$driver : string

Type of IMSP_Auth subclass to return.

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

The driver parameters.

Return values
Horde_Imsp_Auth

_factory()

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<string|int, mixed> $params = array() ]) : mixed
Parameters
$driver : string

Type of Horde_Imsp_Auth subclass to return.

$params : array<string|int, mixed> = array()
Tags
throws
Horde_Exception
Return values
mixed

The created Horde_Imsp_Auth subclass.


        
On this page

Search results