[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
File value for vfs_type column.
Poids: | 1055 lignes (35 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
VFS_sql:: (21 méthodes):
size()
getFolderSize()
read()
readPart()
write()
writeData()
deleteFile()
rename()
createFolder()
deleteFolder()
_listFolder()
listFolders()
_recursiveRename()
_getNativePath()
_connect()
_disconnect()
_readBlob()
_insertBlob()
_updateBlob()
_convertPath()
_getFileSizeOp()
size($path, $name) X-Ref |
Retrieves the filesize from the VFS. param: string $path The pathname to the file. param: string $name The filename to retrieve. return: int The file size. |
getFolderSize($path = null, $name = null) X-Ref |
Returns the size of a file. param: string $path The path of the file. param: string $name The filename. return: integer The size of the folder in bytes or PEAR_Error on |
read($path, $name) X-Ref |
Retrieve a file from the VFS. param: string $path The pathname to the file. param: string $name The filename to retrieve. return: string The file data. |
readPart($path, $name, &$offset, $length = -1, &$remaining) X-Ref |
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. param: string $path The pathname to the file. param: string $name The filename to retrieve. param: integer $offset The offset of the part. (The new offset will be param: integer $length The length of the part. If the length = -1, the param: integer $remaining The bytes that are left, after the part that is return: string The file data. |
write($path, $name, $tmpFile, $autocreate = false) X-Ref |
Stores a file in the VFS. param: string $path The path to store the file in. param: string $name The filename to use. param: string $tmpFile The temporary file containing the data to param: boolean $autocreate Automatically create directories? return: mixed True on success or a PEAR_Error object on failure. |
writeData($path, $name, $data, $autocreate = false) X-Ref |
Store a file in the VFS from raw data. param: string $path The path to store the file in. param: string $name The filename to use. param: string $data The file data. param: boolean $autocreate Automatically create directories? return: mixed True on success or a PEAR_Error object on failure. |
deleteFile($path, $name) X-Ref |
Delete a file from the VFS. param: string $path The path to store the file in. param: string $name The filename to use. return: mixed True on success or a PEAR_Error object on failure. |
rename($oldpath, $oldname, $newpath, $newname) X-Ref |
Rename a file or folder in the VFS. param: string $oldpath The old path to the file. param: string $oldname The old filename. param: string $newpath The new path of the file. param: string $newname The new filename. return: mixed True on success or a PEAR_Error object on failure. |
createFolder($path, $name) X-Ref |
Creates a folder on the VFS. param: string $path Holds the path of directory to create folder. param: string $name Holds the name of the new folder. return: mixed True on success or a PEAR_Error object on failure. |
deleteFolder($path, $name, $recursive = false) X-Ref |
Delete a folder from the VFS. param: string $path The path of the folder. param: string $name The folder name to use. param: boolean $recursive Force a recursive delete? return: mixed True on success or a PEAR_Error object on failure. |
_listFolder($path, $filter = null, $dotfiles = true,$dironly = false) X-Ref |
Return a list of the contents of a folder. param: string $path The directory path. param: mixed $filter String/hash of items to filter based on param: boolean $dotfiles Show dotfiles? param: boolean $dironly Show directories only? return: mixed File list on success or false on failure. |
listFolders($path = '', $filter = array() X-Ref |
Returns a sorted list of folders in specified directory. param: string $path The path of the directory to get the param: mixed $filter String/hash of items to filter based on param: boolean $dotfolders Include dotfolders? return: mixed Folder list on success or PEAR_Error object on failure. |
_recursiveRename($oldpath, $oldname, $newpath, $newname) X-Ref |
Renames all child paths. param: string $path The path of the folder to rename. param: string $name The foldername to use. return: mixed True on success or a PEAR_Error object on failure. |
_getNativePath($path, $name) X-Ref |
Return a full filename on the native filesystem, from a VFS path and name. param: string $path The VFS file path. param: string $name The VFS filename. return: string The full native filename. |
_connect() X-Ref |
Attempts to open a persistent connection to the SQL server. return: mixed True on success or a PEAR_Error object on failure. |
_disconnect() X-Ref |
Disconnect from the SQL server and clean up the connection. |
_readBlob($table, $field, $criteria) X-Ref |
TODO param: string $table TODO param: string $field TODO param: string $criteria TODO return: mixed TODO |
_insertBlob($table, $field, $data, $attributes) X-Ref |
TODO param: string $table TODO param: string $field TODO param: string $data TODO param: string $attributes TODO return: mixed TODO |
_updateBlob($table, $field, $data, $where, $alsoupdate) X-Ref |
TODO param: string $table TODO param: string $field TODO param: string $data TODO param: string $where TODO param: array $alsoupdate TODO return: mixed TODO |
_convertPath($path) X-Ref |
Convert the pathname from regular filesystem form to the internal format needed to access the file in the database. Namely, we will treat '/' as a base directory as this is pretty much the standard way to access base directories over most filesystems. param: string $path A VFS path. return: string The path with any beginning slash stripped off. |
_getFileSizeOp() X-Ref |
Pas de description |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |