Documentation

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
author

Michael J. Rubinsky mrubinsk@horde.org

author

Vilius Šumskas vilius@lnk.lt

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
throws
Agora_Exception
Return values
Agora_Driver

The singleton instance.

Search results