\Horde_Core_Factory_ShareBase

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.

Summary

Methods
Properties
Constants
__construct()
create()
shutdown()
No public properties found
STORAGE_KEY
_getDriverName()
$_injector
$_instances
$_toCache
N/A
No private methods found
No private properties found
N/A

Constants

STORAGE_KEY

STORAGE_KEY

Session storage key.

Properties

$_injector

$_injector : \Horde_Injector

The injector.

Type

\Horde_Injector

$_instances

$_instances : array

Local cache of created share instances.

Type

array

$_toCache

$_toCache : array

Cache of share entries.

Type

array

Methods

__construct()

__construct(\Horde_Injector  $injector) 

Constructor.

Parameters

\Horde_Injector $injector

The injector to use.

create()

create(string  $app = null, string  $driver = null) : \Horde_Share_Base

Returns the share driver instance.

Parameters

string $app

The application scope of the share. If empty, default to current application.

string $driver

The storage driver to use. If empty, use the globally configured storage driver.

Returns

\Horde_Share_Base —

The share driver instance.

shutdown()

shutdown() 

Shutdown function.

_getDriverName()

_getDriverName(string  $driver, string  $base) : string

Return the classname of the driver to load.

Parameters

string $driver

Driver name.

string $base

The base classname.

Throws

\Horde_Exception

Returns

string —

Classname.