Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ContextFileManager Class Reference
Inheritance diagram for ContextFileManager:
PrivateFileManager FileManager BaseSubmissionFileManager SimpleMonographFileManager

Public Member Functions

 ContextFileManager ($contextId)
 
 getBasePath ()
 
- 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)
 

Public Attributes

 $contextId
 
- Public Attributes inherited from PrivateFileManager
 $filesDir
 

Detailed Description

Class defining operations for private context file management.

Definition at line 19 of file ContextFileManager.inc.php.

Member Function Documentation

ContextFileManager::ContextFileManager (   $contextId)

Constructor. Create a manager for handling context file uploads.

Parameters
$contextContext

Definition at line 31 of file ContextFileManager.inc.php.

ContextFileManager::getBasePath ( )

Get the base path for file storage

Returns
string

Definition at line 40 of file ContextFileManager.inc.php.

Member Data Documentation

int ContextFileManager::$contextId

the ID of the associated context

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


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