VFS implementation for PHP's PEAR database abstraction layer.
Required values for $params:
'phptype' The database type (ie. 'pgsql', 'mysql', etc.).
Optional values:
'table' The name of the vfs table in 'database'. Defaults to 'horde_vfs'.
Required by some database implementations:
'hostspec' The hostname of the database server. 'protocol' The communication protocol ('tcp', 'unix', etc.). 'database' The name of the database. 'username' The username with which to connect to the database. 'password' The password associated with 'username'. '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.
Optional values when using separate reading and writing servers, for example in replication settings:
'splitread' Boolean, whether to implement the separation or not. 'read' Array containing the parameters which are different for the read database connection, currently supported only 'hostspec' and 'port' parameters.
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/lib/VFS/sql.php,v 1.1.2.7 2011-01-12 10:56:42 jan Exp $
Copyright 2002-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Located in /VFS/lib/VFS/sql.php (line 65)
VFS | --VFS_sql
Class | Description |
---|---|
![]() |
Multi User VFS implementation for PHP's PEAR database abstraction layer. |
Boolean indicating whether or not we're connected to the SQL server.
Handle for the current database connection.
Handle for the current database connection, used for writing. Defaults to the same handle as $_db if a separate write database is not required.
Inherited from VFS
VFS::$_credentials
VFS::$_logger
VFS::$_logLevel
VFS::$_params
VFS::$_permissions
VFS::$_vfsSize
Creates a folder on the VFS.
Delete a file from the VFS.
Delete a folder from the VFS.
Garbage collect files in the VFS storage system.
Returns the size of a file.
VFS_sql override of isFolder() to check for root folder.
Returns a sorted list of folders in specified directory.
Retrieve a file from the VFS.
Retrieves a part of a file from the VFS. Particularly useful when reading large files which would exceed the PHP memory limits if they were stored in a string.
Rename a file or folder in the VFS.
Retrieves the filesize from the VFS.
Stores a file in the VFS.
Store a file in the VFS from raw data.
TODO
Return a list of the contents of a folder.
Inherited From VFS
VFS::VFS()
VFS::autocreatePath()
VFS::changePermissions()
VFS::checkCredentials()
VFS::copy()
VFS::createFolder()
VFS::delete()
VFS::deleteFile()
VFS::deleteFolder()
VFS::emptyFolder()
VFS::exists()
VFS::factory()
VFS::getCurrentDirectory()
VFS::getFolderSize()
VFS::getModifiablePermissions()
VFS::getParam()
VFS::getQuota()
VFS::getRequiredCredentials()
VFS::getVFSSize()
VFS::isFolder()
VFS::listFolder()
VFS::listFolders()
VFS::log()
VFS::move()
VFS::read()
VFS::readByteRange()
VFS::readFile()
VFS::rename()
VFS::setLogger()
VFS::setParams()
VFS::setQuota()
VFS::setQuotaRoot()
VFS::singleton()
VFS::size()
VFS::strlen()
VFS::strtolower()
VFS::write()
VFS::writeData()
VFS::_copyRecursive()
VFS::_getPath()
VFS::_getTempDir()
VFS::_getTempFile()
VFS::_listFolder()
Documentation generated on Sun, 30 Jan 2011 05:21:43 +0000 by phpDocumentor 1.4.3