Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
LibraryFileManager Class Reference
Inheritance diagram for LibraryFileManager:
PKPLibraryFileManager PrivateFileManager FileManager

Public Member Functions

 getFileSuffixFromType ($type)
 
getTypeNameMap ()
 
getTypeSuffixMap ()
 
getTypeTitleKeyMap ()
 
 LibraryFileManager ($contextId)
 
- Public Member Functions inherited from PKPLibraryFileManager
copyFromTemporaryFile (&$temporaryFile, $libraryFileType)
 
 deleteFile ($fileId)
 
 generateFileName ($type, $originalFileName)
 
 getBasePath ()
 
 getFileSuffixFromType ($type)
 
 getNameFromType ($type)
 
 getTitleKeyFromType ($type)
 
getTypeNameMap ()
 
getTypeSuffixMap ()
 
getTypeTitleKeyMap ()
 
 PKPLibraryFileManager ($contextId)
 
- Public Member Functions inherited from PrivateFileManager
 getBasePath ()
 
 PrivateFileManager ()
 
- Public Member Functions inherited from FileManager
 copyDir ($source, $dest)
 
 copyFile ($source, $dest)
 
 deleteFile ($filePath)
 
 downloadFile ($filePath, $mediaType=null, $inline=false, $fileName=null)
 
 fileExists ($filePath, $type= 'file')
 
 FileManager ()
 
 getDocumentExtension ($type)
 
 getDocumentType ($type)
 
 getExtension ($fileName)
 
 getImageExtension ($type)
 
 getNiceFileSize ($size)
 
 getUploadedFileName ($fileName)
 
 getUploadedFilePath ($fileName)
 
 getUploadedFileType ($fileName)
 
 mkdir ($dirPath, $perms=null)
 
 mkdirtree ($dirPath, $perms=null)
 
 parseFileExtension ($fileName)
 
 readFile ($filePath, $output=false)
 
 rmdir ($dirPath)
 
 rmtree ($file)
 
 setMode ($path, $mask)
 
 truncateFileName ($fileName, $length=127)
 
 uploadedFileExists ($fileName)
 
 uploadError ($fileName)
 
 uploadFile ($fileName, $destFileName)
 
 writeFile ($dest, &$contents)
 

Additional Inherited Members

- Public Attributes inherited from PrivateFileManager
 $filesDir
 

Detailed Description

Wrapper class for uploading files to a site/context' library directory.

Definition at line 18 of file LibraryFileManager.inc.php.

Member Function Documentation

LibraryFileManager::getFileSuffixFromType (   $type)

Get the file suffix for the given file type

Parameters
$typeint LIBRARY_FILE_TYPE_...

Definition at line 33 of file LibraryFileManager.inc.php.

References getTypeSuffixMap().

& LibraryFileManager::getTypeNameMap ( )

Get the type => name mapping array

Returns
array

Definition at line 68 of file LibraryFileManager.inc.php.

& LibraryFileManager::getTypeSuffixMap ( )

Get the type => suffix mapping array

Returns
array

Definition at line 42 of file LibraryFileManager.inc.php.

Referenced by getFileSuffixFromType(), and LibraryFileGridHandler\loadData().

& LibraryFileManager::getTypeTitleKeyMap ( )

Get the type => locale key mapping array

Returns
array

Definition at line 55 of file LibraryFileManager.inc.php.

LibraryFileManager::LibraryFileManager (   $contextId)

Constructor

Parameters
$contextIdint

Definition at line 24 of file LibraryFileManager.inc.php.


The documentation for this class was generated from the following file: