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 68]
Multi User 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_muvfs'.
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.
Known Issues: Delete is not recusive, so file and folders that used to be in a folder that gets deleted life forever in the database, or re-appear when the folder is recreated. Rename has the same issue, if files are lost if a folder is renamed.
The table structure for the VFS can be found in data/muvfs.sql.