| [ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 920 lignes (31 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
VFS_ftp:: (20 méthodes):
size()
read()
write()
writeData()
deleteFile()
isFolder()
deleteFolder()
rename()
createFolder()
changePermissions()
_listFolder()
listFolders()
copy()
move()
getCurrentDirectory()
_setPath()
_getPath()
_parentDir()
_connect()
_disconnect()
| size($path, $name) 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 file in bytes or PEAR_Error on |
| read($path, $name) X-Ref |
| Retrieves 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. |
| 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 |
| Stores 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 |
| Deletes a file from the VFS. param: string $path The path to delete the file from. param: string $name The filename to delete. return: mixed True on success or a PEAR_Error object on failure. |
| isFolder($path, $name) X-Ref |
| Checks if a given item is a folder. param: string $path The parent folder. param: string $name The item name. return: boolean True if it is a folder, false otherwise. |
| deleteFolder($path, $name, $recursive = false) X-Ref |
| Deletes a folder from the VFS. param: string $path The parent folder. param: string $name The name of the folder to delete. param: boolean $recursive Force a recursive delete? return: mixed True on success or a PEAR_Error object on failure. |
| rename($oldpath, $oldname, $newpath, $newname) X-Ref |
| Renames a file 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 The parent folder. param: string $name The name of the new folder. return: mixed True on success or a PEAR_Error object on failure. |
| changePermissions($path, $name, $permission) X-Ref |
| Changes permissions for an item on the VFS. param: string $path The parent folder of the item. param: string $name The name of the item. param: string $permission The permission to set. return: mixed True on success or a PEAR_Error object on failure. |
| _listFolder($path = '', $filter = null, $dotfiles = true,$dironly = false) X-Ref |
| Returns an an unsorted file list of the specified directory. param: string $path The path of the directory. param: mixed $filter String/hash to filter file/dirname on. param: boolean $dotfiles Show dotfiles? param: boolean $dironly Show only directories? return: array File list on success or PEAR_Error on failure. |
| listFolders($path = '', $filter = null, $dotfolders = true) X-Ref |
| Returns a sorted list of folders in the specified directory. param: string $path The path of the directory to get the param: mixed $filter Hash of items to filter based on folderlist. param: boolean $dotfolders Include dotfolders? return: mixed Folder list on success or a PEAR_Error object on failure. |
| copy($path, $name, $dest) X-Ref |
| Copies a file through the backend. param: string $path The path of the original file. param: string $name The name of the original file. param: string $dest The name of the destination directory. return: mixed True on success or a PEAR_Error object on failure. |
| move($path, $name, $dest) X-Ref |
| Moves a file through the backend. param: string $path The path of the original file. param: string $name The name of the original file. param: string $dest The destination file name. return: mixed True on success or a PEAR_Error object on failure. |
| getCurrentDirectory() X-Ref |
| Returns the current working directory on the FTP server. return: string The current working directory. |
| _setPath($path) X-Ref |
| Changes the current directory on the server. param: string $path The path to change to. return: mixed True on success, or a PEAR_Error on failure. |
| _getPath($path, $name) X-Ref |
| Returns the full path of an item. param: string $path The directory of the item. param: string $name The name of the item. return: mixed Full path to the file when $path is not empty and just |
| _parentDir($path) X-Ref |
| Returns the parent directory of the specified path. param: string $path The path to get the parent of. return: string The parent directory (string) on success or a PEAR_Error |
| _connect() X-Ref |
| Attempts to open a connection to the FTP server. return: mixed True on success or a PEAR_Error object on failure. |
| _disconnect() X-Ref |
| Disconnects from the FTP server and cleans up the connection. |
| Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |