storageBackend = new Amazon_S3StorageBackend($CC_CONFIG["amazon_S3"]); } else if ($storageBackend == "file") { $this->storageBackend = new FileStorageBackend(); } else { $this->storageBackend = new $storageBackend($CC_CONFIG[$storageBackend]); } } public function getAbsoluteFilePath($resourceId) { return $this->storageBackend->getAbsoluteFilePath($resourceId); } public function getDownloadURLs($resourceId, $contentDispositionFilename) { return $this->storageBackend->getDownloadURLs($resourceId, $contentDispositionFilename); } public function deletePhysicalFile($resourceId) { $this->storageBackend->deletePhysicalFile($resourceId); } public function deleteAllCloudFileObjects() { $this->storageBackend->deleteAllCloudFileObjects(); } public function getFilePrefix() { return $this->storageBackend->getFilePrefix(); } }