Horde_Core_Factory_Imsp
extends Horde_Core_Factory_Base
in package
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.
Tags
Table of Contents
Properties
- $_injector : Horde_Injector
- The injector.
- $_instances : array<string|int, mixed>
- The instance cache
Methods
- __construct() : mixed
- Constructor
- create() : Horde_Imsp
- Create an instance of a Horde_Imsp class.
- _factory() : mixed
- Factory method
- _getDriverName() : string
- Return the classname of the driver to load.
Properties
$_injector
The injector.
protected
Horde_Injector
$_injector
$_instances
The instance cache
protected
array<string|int, mixed>
$_instances
= array()
Methods
__construct()
Constructor
public
__construct(Horde_Injector $injector) : mixed
Parameters
- $injector : Horde_Injector
create()
Create an instance of a Horde_Imsp class.
public
create([type $driver = null ][, array<string|int, mixed> $params = array() ]) : Horde_Imsp
Parameters
- $driver : type = null
-
The driver type.
- $params : array<string|int, mixed> = array()
-
Driver params.
Return values
Horde_Imsp —The Horde_Imsp object
_factory()
Factory method
protected
_factory([string $driver = null ][, array<string|int, mixed> $params = array() ]) : mixed
Parameters
- $driver : string = null
-
The driver type, leave empty for client connection
- $params : array<string|int, mixed> = array()
-
The driver parameters, leave empty to use default.
Tags
Return values
mixed —The Horde_Imsp object or Horde_Imsp_Client object.
_getDriverName()
Return the classname of the driver to load.
protected
_getDriverName(string $driver, string $base) : string
Parameters
- $driver : string
-
Driver name.
- $base : string
-
The base classname.
Tags
Return values
string —Classname.