PHP Class Horde_Core_Factory_Imsp, 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.
Inheritance: extends Horde_Core_Factory_Base
Mostra file Open project: horde/horde

Protected Properties

Property Type Description
$_injector Horde_Injector
$_instances array The instance cache

Public Methods

Method Description
__construct ( Horde_Injector $injector ) Constructor
create ( type $driver = null, array $params = [] ) : Horde_Imsp Create an instance of a Horde_Imsp class.

Protected Methods

Method Description
_factory ( string $driver = null, array $params = [] ) : mixed Factory method

Method Details

__construct() public method

Constructor
public __construct ( Horde_Injector $injector )
$injector Horde_Injector

_factory() protected method

Factory method
protected _factory ( string $driver = null, array $params = [] ) : mixed
$driver string The driver type, leave empty for client connection
$params array The driver parameters, leave empty to use default.
return mixed The Horde_Imsp object or Horde_Imsp_Client object.

create() public method

Create an instance of a Horde_Imsp class.
public create ( type $driver = null, array $params = [] ) : Horde_Imsp
$driver type The driver type.
$params array Driver params.
return Horde_Imsp The Horde_Imsp object

Property Details

$_injector protected_oe property

protected Horde_Injector $_injector
return Horde_Injector

$_instances protected_oe property

The instance cache
protected array $_instances
return array