Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
BaseSubmissionFileManager.inc.php
1 <?php
2 
28 import('lib.pkp.classes.file.ContextFileManager');
29 
32  var $_submissionId;
33 
39  function BaseSubmissionFileManager($contextId, $submissionId) {
40  parent::ContextFileManager($contextId);
41  $this->_submissionId = (int) $submissionId;
42  }
43 
44 
45  //
46  // Public methods
47  //
51  function getBasePath() {
52  $dirNames = Application::getFileDirectories();
53  return parent::getBasePath() . $dirNames['submission'] . $this->_submissionId . '/';
54  }
55 
59  function getSubmissionId() {
60  return $this->_submissionId;
61  }
62 }
63 
64 ?>
BaseSubmissionFileManager($contextId, $submissionId)
Class defining operations for private context file management.
Base helper class for submission file management tasks.
static getFileDirectories()