Horde_Core_Factory_ShareBase
extends Horde_Core_Factory_Base
in package
A Horde_Injector based Horde_Share factory.
Copyright 2010-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
Constants
- STORAGE_KEY = 'horde_share/'
- Session storage key.
Properties
- $_injector : Horde_Injector
- The injector.
- $_instances : array<string|int, mixed>
- Local cache of created share instances.
- $_toCache : array<string|int, mixed>
- Cache of share entries.
Methods
- __construct() : mixed
- Constructor.
- create() : Horde_Share_Base
- Returns the share driver instance.
- shutdown() : mixed
- Shutdown function.
- _getDriverName() : string
- Return the classname of the driver to load.
Constants
STORAGE_KEY
Session storage key.
public
mixed
STORAGE_KEY
= 'horde_share/'
Properties
$_injector
The injector.
protected
Horde_Injector
$_injector
$_instances
Local cache of created share instances.
protected
array<string|int, mixed>
$_instances
= array()
$_toCache
Cache of share entries.
protected
array<string|int, mixed>
$_toCache
= array()
Methods
__construct()
Constructor.
public
__construct(Horde_Injector $injector) : mixed
Parameters
- $injector : Horde_Injector
-
The injector to use.
create()
Returns the share driver instance.
public
create([string $app = null ][, string $driver = null ]) : Horde_Share_Base
Parameters
- $app : string = null
-
The application scope of the share. If empty, default to current application.
- $driver : string = null
-
The storage driver to use. If empty, use the globally configured storage driver.
Return values
Horde_Share_Base —The share driver instance.
shutdown()
Shutdown function.
public
shutdown() : mixed
_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.