Agora_Factory_Driver
in package
Horde_Injector factory to create Agora_Driver instances.
Copyright 2011-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Tags
Table of Contents
- $_injector : Horde_Injector
- The injector.
- $_instances : array<string|int, mixed>
- Instances.
- __construct() : mixed
- Constructor.
- create() : Agora_Driver
- Return the Agora_Driver:: instance.
Properties
$_injector
The injector.
private
Horde_Injector
$_injector
$_instances
Instances.
private
array<string|int, mixed>
$_instances
= array()
Methods
__construct()
Constructor.
public
__construct(Horde_Injector $injector) : mixed
Parameters
- $injector : Horde_Injector
-
The injector to use.
Return values
mixed —create()
Return the Agora_Driver:: instance.
public
create([string $scope = 'agora' ], int $forum_id) : Agora_Driver
Parameters
- $scope : string = 'agora'
-
Instance scope
- $forum_id : int
-
Forum to link to
Tags
Return values
Agora_Driver —The singleton instance.