Esempio n. 1
0
 /**
  * Return absolute path to the file on the host filesystem.
  * @return string
  */
 function getFilePath()
 {
     $paperDao = DAORegistry::getDAO('PaperDAO');
     $paper =& $paperDao->getPaper($this->getPaperId());
     $paperId = $paper->getSchedConfId();
     $schedConfDao = DAORegistry::getDAO('SchedConfDAO');
     $schedConf = $schedConfDao->getById($paperId);
     import('classes.file.PaperFIleManager');
     $paperFileManager = new PaperFileManager($this->getPaperId());
     return Config::getVar('files', 'files_dir') . '/conferences/' . $schedConf->getConferenceId() . '/schedConfs/' . $paperId . '/papers/' . $this->getPaperId() . '/' . $paperFileManager->fileStageToPath($this->getFileStage()) . '/' . $this->getFileName();
 }