filemanager.module

Version

1.21 (checked in on 2007/07/05 at 04:44:20 by drewish)

Functions

Namesort iconDescription
filemanager_add_fileAdds a file into the repository as a working copy
filemanager_add_uploadSaves a file uploaded into a the file store as a working copy.
filemanager_admin_settingsDisplays filemanager admin screen
filemanager_admin_settings_submitHandle the submission of the admin/settings form. This is a bit unusual since the settings form is normally handled automatically, but due to the deep fileareas->areas array used for the file areas table, the system_settings_form_submit can't...
filemanager_area_listReturns a list of file areas used by the current module set
filemanager_create_directoryCreates a directory if it does not already exist.
filemanager_create_directory_pathReturns the path to a the directory where this file is located.
filemanager_create_pathReturns the path to a file in the filestore
filemanager_deleteRemoves a file from a repository
filemanager_download_activeMenu callback to download the latest active file
filemanager_download_workingMenu callback to download the working version of a file. If no working version is available then the latest active version will be downloaded.
filemanager_get_area_infoReturns statistics object about a given filestore area. The object contains the following fields: size - the total size of all files in the area filecount - which is the number of files in the area. sizelimit - the size limit for this area
filemanager_get_file_infoReturns a filestore object containing information about a given file. Passing in a filestore object will just pass the same object back out.
filemanager_get_sizeReturns the total size in bytes of all current active files.
filemanager_get_working_copyGets a working copy of the active version of a file in the filestore
filemanager_get_working_sizeReturns the total size in bytes of all the current working files. We have to use the filesystem since sizes of working files will not be accurate in the database.
filemanager_help
filemanager_lCreate a link to download a file in the filestore.
filemanager_menu
filemanager_promote_workingPromotes a working copy of a file to the active copy
filemanager_purge_orphansPurges out files over the age limit in the working repository for all areas
filemanager_purge_workingPurge a working file from the repository
filemanager_remove_directoryRemoves a directory and all files contained within.
filemanager_renameRenames an existing file in the filestore
filemanager_set_privateMoves the file from public to private or vice versa
filemanager_transferTransfers a file to the client after calling modules to find out if a file is accessible for a given user. This function is here to support legacy private downloads
filemanager_urlCreate the URL to download a file in the filestore.
theme_filemanager_fileareas_admin
_filemanager_copyCopies a file to a new location. This is a powerful function that in many ways performs like an advanced version of copy(). Checks if $source and $dest are valid and readable/writable. Performs a file copy if $source is not equal to $dest. If file...
_filemanager_find_directorythis must be called while the lock is held
_filemanager_lock
_filemanager_moveMoves a file to a new location. Checks if $source and $dest are valid and readable/writable. Performs a file move if $source is not equal to $dest. If file already exists in $dest either the call will error out, replace the file or rename the file...
_filemanager_settings_check_directoryChecks the existence of the directory specified in $form_element. If validation fails, the form element is flagged with an error from within the file_check_directory function. See: system_check_directory()
_filemanager_transferTransfer file using http to client. Pipes a file through Drupal to the client.
_filemanager_unlock
_filemanager_update_filehelper function for filemanager_rename and filemanager_set_private does the actual file moving from $oldactive and $oldworking to the values set in the $file object