Attempts to return a reference to a concrete VFS instance based on $driver. It will only create a new instance if no VFS instance with the same parameters currently exists.
Returns an an unsorted file list of the specified directory.
Class Details
[line 58]
VFS implementation for PHP's PEAR database abstraction layer.
Required values for $params:
'phptype' The database type (ie. 'pgsql', 'mysql, etc.).
'hostspec' The hostname of the database server.
'protocol' The communication protocol ('tcp', 'unix', etc.).
'username' The username with which to connect to the database.
'password' The password associated with 'username'.
'database' The name of the database.
Optional values:
'table' The name of the vfs table in 'database'. Defaults to
'horde_vfs'.
Required by some database implementations:
'options' Additional options to pass to the database.
'tty' The TTY on which to connect to the database.
'port' The port on which to connect to the database.
The table structure for the VFS can be found in data/vfs.sql.
Database specific notes:
MSSQL:
- The vfs_data field must be of type IMAGE.
- You need the following php.ini settings:
; Valid range 0 - 2147483647. Default = 4096.
mssql.textlimit = 0 ; zero to pass through
; Valid range 0 - 2147483647. Default = 4096.
mssql.textsize = 0 ; zero to pass through
$Horde: framework/VFS/VFS/sql.php,v 1.92 2005/04/07 13:24:23 jan Exp $