classes/file/ConferenceFileManager.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 //$Id$
00016 
00017 import('file.FileManager');
00018 
00019 class ConferenceFileManager extends FileManager {
00020 
00022    var $filesDir;
00023 
00025    var $conferenceId;
00026 
00028    var $conference;
00029 
00035    function ConferenceFileManager(&$conference) {
00036       $this->conferenceId = $conference->getId();
00037       $this->conference =& $conference;
00038       $this->filesDir = Config::getVar('files', 'files_dir') . '/conferences/' . $this->conferenceId . '/';
00039    }
00040 
00041    function uploadFile($fileName, $destFileName) {
00042       return parent::uploadFile($fileName, $this->filesDir . $destFileName);
00043    }
00044 
00045    function downloadFile($filePath, $fileType, $inline = false) {
00046       return parent::downloadFile($this->filesDir . $filePath, $fileType, $inline);
00047    }
00048 
00049    function deleteFile($fileName) {
00050       return parent::deleteFile($this->filesDir . $fileName);
00051    }
00052 }
00053 
00054 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7