\Horde_Core_Factory_Vfs

A Horde_Injector based Horde_Vfs 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()
getConfig()
No public properties found
No constants found
_getDriverName()
$_injector
N/A
No private methods found
$_instances
N/A

Properties

$_injector

$_injector : \Horde_Injector

The injector.

Type

\Horde_Injector

$_instances

$_instances : array

Instances.

Type

array

Methods

__construct()

__construct(\Horde_Injector  $injector) 

Constructor.

Parameters

\Horde_Injector $injector

The injector to use.

create()

create(string  $scope = 'horde', array  $params = null) : \Horde_Vfs

Returns the VFS instance.

Parameters

string $scope

The vfs scope to return.

array $params

Configuration parameters. If specified this configuration is used instead of the configuration from conf.php.

Throws

\Horde_Exception

Returns

\Horde_Vfs —

The VFS object.

getConfig()

getConfig(string  $name = 'horde') : array

Returns the VFS driver parameters for the specified backend.

Parameters

string $name

The VFS system name being used.

Throws

\Horde_Exception

Returns

array —

A hash with the VFS parameters; the VFS driver in 'type' and the connection parameters in 'params'.

_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.