PHP Класс PublicFileManager, ojs

Наследование: extends FileManager
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ) Constructor
copyJournalFile ( $journalId, $sourceFile, $destFileName ) : boolean Copy a file to a journals's public directory.
getContextFilesPath ( $assocType, $contextId ) : string Get the path to a journal's public files directory.
getJournalFilesPath ( $journalId ) : string Get the path to a journal's public files directory.
removeJournalFile ( $journalId, $fileName ) : boolean Delete a file from a journal's public directory.
uploadJournalFile ( $journalId, $fileName, $destFileName ) : boolean Upload a file to a journals's public directory.
writeJournalFile ( $journalId, $destFileName, $contents ) : boolean Write a file to a journals's public directory.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

copyJournalFile() публичный Метод

Copy a file to a journals's public directory.
public copyJournalFile ( $journalId, $sourceFile, $destFileName ) : boolean
$journalId int
$sourceFile string the source of the file to copy
$destFileName string the destination file name
Результат boolean

getContextFilesPath() публичный Метод

Get the path to a journal's public files directory.
public getContextFilesPath ( $assocType, $contextId ) : string
$assocType int Assoc type for context
$contextId int Press ID
Результат string

getJournalFilesPath() публичный Метод

Get the path to a journal's public files directory.
public getJournalFilesPath ( $journalId ) : string
$journalId int
Результат string

removeJournalFile() публичный Метод

Delete a file from a journal's public directory.
public removeJournalFile ( $journalId, $fileName ) : boolean
$journalId int
$fileName string the target file name
Результат boolean

uploadJournalFile() публичный Метод

Upload a file to a journals's public directory.
public uploadJournalFile ( $journalId, $fileName, $destFileName ) : boolean
$journalId int
$fileName string the name of the file in the upload form
$destFileName string the destination file name
Результат boolean

writeJournalFile() публичный Метод

Write a file to a journals's public directory.
public writeJournalFile ( $journalId, $destFileName, $contents ) : boolean
$journalId int
$destFileName string the destination file name
$contents string the contents to write to the file
Результат boolean