/**
  * Constructor.
  * Create a manager for handling conference file uploads.
  * @param $conferenceId int
  */
 function ConferenceFileManager(&$conference)
 {
     $this->conferenceId = $conference->getId();
     $this->conference =& $conference;
     $this->filesDir = Config::getVar('files', 'files_dir') . '/conferences/' . $this->conferenceId . '/';
     parent::FileManager();
 }
 /**
  * Constructor.
  * Create a manager for handling journal file uploads.
  * @param $journalId int
  */
 function JournalFileManager(&$journal)
 {
     $this->journalId = $journal->getId();
     $this->journal =& $journal;
     $this->filesDir = Config::getVar('files', 'files_dir') . '/journals/' . $this->journalId . '/';
     parent::FileManager();
 }
 /**
  * Constructor.
  * Create a manager for handling issue file uploads.
  * @param $issueId int
  */
 function IssueFileManager($issueId)
 {
     $issueDao =& DAORegistry::getDAO('IssueDAO');
     $issue =& $issueDao->getIssueById($issueId);
     assert($issue);
     $this->setIssueId($issueId);
     $this->setFilesDir(Config::getVar('files', 'files_dir') . '/journals/' . $issue->getJournalId() . '/issues/' . $issueId . '/');
     parent::FileManager();
 }
Exemple #4
0
 /**
  * Constructor.
  * Create a manager for handling article file uploads.
  * @param $articleId int
  */
 function ArticleFileManager($articleId)
 {
     $this->articleId = $articleId;
     $articleDao = DAORegistry::getDAO('ArticleDAO');
     $this->article = $articleDao->getById($articleId);
     $journalId = $this->article->getJournalId();
     $this->filesDir = Config::getVar('files', 'files_dir') . '/journals/' . $journalId . '/articles/' . $articleId . '/';
     parent::FileManager();
 }
 /**
  * Constructor
  * @param $pressId int
  */
 function LibraryFileManager($pressId)
 {
     parent::FileManager();
     $this->filesDir = Config::getVar('files', 'files_dir') . '/presses/' . $pressId . '/library/';
     $this->pressId = $pressId;
 }
 /**
  * Constructor
  */
 function PrivateFileManager()
 {
     parent::FileManager();
     $this->filesDir = $this->getBasePath();
 }
 /**
  * Constructor
  */
 function PKPPublicFileManager()
 {
     parent::FileManager();
 }
 /**
  * Constructor
  */
 function PKPTemporaryFileManager()
 {
     parent::FileManager();
     $this->filesDir = Config::getVar('files', 'files_dir') . '/temp/';
     $this->_performPeriodicCleanup();
 }
 /**
  * Constructor.
  */
 function MonographFileManager()
 {
     parent::FileManager();
 }
 /**
  * Constructor
  */
 function AboutFileManager()
 {
     parent::FileManager();
     $this->filesDir = str_replace('classes', 'public/about/', dirname(realpath(__DIR__)));
 }
 /**
  * Constructor
  */
 function PrivateFileManager()
 {
     parent::FileManager();
 }
 /**
  * constructor
  */
 function ImageFileManager()
 {
     parent::FileManager();
     parent::setAllowedMimeTypes(array("image/gif", "image/jpeg", "image/pjpeg", "image/jpg", "image/png"));
 }