Documentation

Horde_Core_Factory_Vfs extends Horde_Core_Factory_Base
in package

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.

Tags
author

Michael J. Rubinsky mrubinsk@horde.org

category

Horde

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

Properties

$_injector  : Horde_Injector
The injector.
$_instances  : array<string|int, mixed>
Instances.

Methods

__construct()  : mixed
Constructor.
create()  : Horde_Vfs
Returns the VFS instance.
getConfig()  : array<string|int, mixed>
Returns the VFS driver parameters for the specified backend.
_getDriverName()  : string
Return the classname of the driver to load.

Properties

$_injector

The injector.

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

create()

Returns the VFS instance.

public create([string $scope = 'horde' ][, array<string|int, mixed> $params = null ]) : Horde_Vfs
Parameters
$scope : string = 'horde'

The vfs scope to return.

$params : array<string|int, mixed> = null

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

Tags
throws
Horde_Exception
Return values
Horde_Vfs

The VFS object.

getConfig()

Returns the VFS driver parameters for the specified backend.

public getConfig([string $name = 'horde' ]) : array<string|int, mixed>
Parameters
$name : string = 'horde'

The VFS system name being used.

Tags
throws
Horde_Exception
Return values
array<string|int, mixed>

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

_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
throws
Horde_Exception
Return values
string

Classname.


        
On this page

Search results