PHP Class Horde_Core_HashTable_Vfs, horde
This is a common use-case for Horde applications (i.e. it allows direct
manipulation of filedata uploaded from the browser without needing to
read the file into memory), and allows us to take advantage of these VFS
features in combination with the cleanup and simplicity features of
HashTable.
Datei anzeigen
Open project: horde/horde
Class Usage Examples
Protected Properties
Property |
Type |
Description |
|
$_stream |
boolean |
Return get data as stream objects? |
|
Public Methods
Protected Methods
Method |
Description |
|
_get ( $keys ) |
|
|
_set ( $key, $val, array $opts ) |
|
|
Method Details
__construct()
public method
protected _set ( $key, $val, array $opts ) |
$opts |
array |
Additional option honored in this driver:
- filename: (boolean) If true, $val is a filename containing the
data to be saved rather than the data itself. |
Perform garbage collection on the VFS path.
public gc ( integer $expire ) |
$expire |
integer |
Expire entries older than this value (in
seconds). |
getStream()
public method
Get data associated with a key(s).
public getStream ( mixed $keys ) : mixed |
$keys |
mixed |
The key or an array of keys. |
return |
mixed |
The string/array on success (return type is the type of
$keys); Horde_Stream objects are returned on success,
false value(s) on failure. |
Property Details
$_stream protected_oe property
Return get data as stream objects?
protected bool $_stream |
return |
boolean |
|