Merge of cc-5709-airtime-analyzer-saas-refactor into saas
This commit is contained in:
parent
70f5bd3748
commit
2e2c3d6276
12 changed files with 627 additions and 468 deletions
|
@ -5,16 +5,16 @@ require_once 'FileStorageBackend.php';
|
|||
require_once 'Amazon_S3StorageBackend.php';
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Controls access to the storage backend class where a file is stored.
|
||||
*
|
||||
*/
|
||||
class ProxyStorageBackend extends StorageBackend
|
||||
{
|
||||
private $storageBackend;
|
||||
|
||||
|
||||
/**
|
||||
* Receives the file's storage backend and instantiates the approriate
|
||||
* Receives the file's storage backend and instantiates the appropriate
|
||||
* object.
|
||||
*/
|
||||
public function ProxyStorageBackend($storageBackend)
|
||||
|
@ -32,22 +32,22 @@ class ProxyStorageBackend extends StorageBackend
|
|||
$this->storageBackend = new $storageBackend($CC_CONFIG[$storageBackend]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function getAbsoluteFilePath($resourceId)
|
||||
{
|
||||
return $this->storageBackend->getAbsoluteFilePath($resourceId);
|
||||
}
|
||||
|
||||
|
||||
public function getSignedURL($resourceId)
|
||||
{
|
||||
return $this->storageBackend->getSignedURL($resourceId);
|
||||
}
|
||||
|
||||
|
||||
public function getFileSize($resourceId)
|
||||
{
|
||||
return $this->storageBackend->getFileSize($resourceId);
|
||||
}
|
||||
|
||||
|
||||
public function deletePhysicalFile($resourceId)
|
||||
{
|
||||
$this->storageBackend->deletePhysicalFile($resourceId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue