Horde_Vfs
in package
VFS API for abstracted file storage and access.
Copyright 2002-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
- QUOTA_METRIC_BYTE = 1
- QUOTA_METRIC_GB = 4
- QUOTA_METRIC_KB = 2
- QUOTA_METRIC_MB = 3
- factory() : VFS
- Attempts to return a concrete instance based on $driver.
Constants
QUOTA_METRIC_BYTE
public
mixed
QUOTA_METRIC_BYTE
= 1
QUOTA_METRIC_GB
public
mixed
QUOTA_METRIC_GB
= 4
QUOTA_METRIC_KB
public
mixed
QUOTA_METRIC_KB
= 2
QUOTA_METRIC_MB
public
mixed
QUOTA_METRIC_MB
= 3
Methods
factory()
Attempts to return a concrete instance based on $driver.
public
static factory(mixed $driver[, array<string|int, mixed> $params = array() ]) : VFS
Parameters
- $driver : mixed
-
The type of concrete subclass to return. This is based on the storage driver ($driver). The code is dynamically included.
- $params : array<string|int, mixed> = array()
-
A hash containing any additional configuration or connection parameters a subclass might need.
Tags
Return values
VFS —The newly created concrete VFS instance.