Open Journal Systems
3.3.0
|
17 define(
'LIBRARY_FILE_TYPE_CONTRACT', 0x00001);
18 define(
'LIBRARY_FILE_TYPE_MARKETING', 0x00002);
19 define(
'LIBRARY_FILE_TYPE_PERMISSION', 0x00003);
20 define(
'LIBRARY_FILE_TYPE_REPORT', 0x00004);
21 define(
'LIBRARY_FILE_TYPE_OTHER', 0x00005);
23 import(
'lib.pkp.classes.file.FileManager');
45 return $this->
getData(
'contextId');
53 $this->
setData(
'contextId', $contextId);
61 return $this->
getData(
'submissionId');
69 $this->
setData(
'submissionId', $submissionId);
77 return $this->
getData(
'fileName');
85 $this->
setData(
'fileName', $fileName);
93 return $this->
getData(
'originalFileName');
101 $this->
setData(
'originalFileName', $originalFileName);
110 $this->
setData(
'name', $name, $locale);
119 return $this->
getData(
'name', $locale);
135 return $this->
getData(
'fileType');
143 $this->
setData(
'fileType', $fileType);
167 return $this->
getData(
'dateUploaded');
175 return $this->SetData(
'dateUploaded', $dateUploaded);
183 return $this->
getData(
'dateModified');
191 return $this->SetData(
'dateModified', $dateModified);
199 return $this->
getData(
'fileSize');
208 return $this->SetData(
'fileSize', $fileSize);
217 return $fileManager->getNiceFileSize($this->
getData(
'fileSize'));
226 return $fileManager->getDocumentType($this->
getFileType());
234 return $this->
getData(
'publicAccess');
242 $this->
setData(
'publicAccess', $publicAccess);
& getData($key, $locale=null)
getLocalizedData($key, $preferredLocale=null)
Any class with an associated DAO should extend this class.
setOriginalFileName($originalFileName)
setSubmissionId($submissionId)
static getVar($section, $key, $default=null)
setDateModified($dateModified)
setPublicAccess($publicAccess)
setDateUploaded($dateUploaded)
Class defining basic operations for file management.
setServerFileName($fileName)
setData($key, $value, $locale=null)