JournalFileManager Class Reference
[File]

Class defining operations for private journal file management. More...

Inheritance diagram for JournalFileManager:

FileManager

List of all members.

Public Member Functions

 deleteFile ($fileName)
 downloadFile ($filePath, $fileType, $inline=false)
 JournalFileManager (&$journal)
 uploadFile ($fileName, $destFileName)


Detailed Description

Class defining operations for private journal file management.

Definition at line 20 of file JournalFileManager.inc.php.


Member Function Documentation

JournalFileManager.deleteFile ( filePath  ) 

Delete a file.

Parameters:
$filePath string the location of the file to be deleted
Returns:
boolean returns true if successful

Reimplemented from FileManager.

Definition at line 50 of file JournalFileManager.inc.php.

JournalFileManager.downloadFile ( filePath,
type,
inline = false 
)

Download a file. Outputs HTTP headers and file content for download

Parameters:
$filePath string the location of the file to be sent
$type string the MIME type of the file, optional
$inline print file as inline instead of attachment, optional
Returns:
boolean

Reimplemented from FileManager.

Definition at line 46 of file JournalFileManager.inc.php.

JournalFileManager.JournalFileManager ( &$  journal  ) 

Constructor. Create a manager for handling journal file uploads.

Parameters:
$journalId int

Definition at line 36 of file JournalFileManager.inc.php.

References Config.getVar().

JournalFileManager.uploadFile ( fileName,
destFileName 
)

Upload a file.

Parameters:
$fileName string the name of the file used in the POST form
$dest string the path where the file is to be saved
Returns:
boolean returns true if successful

Reimplemented from FileManager.

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


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

Generated on Mon Jul 14 10:55:43 2008 for Open Journal Systems by  doxygen 1.5.6