CloudStorageService
Table of Contents
Properties
-
$bucketAliases
: array<string|int, BucketAlias>
-
$fileUtil
: FileUtil
-
$googleCloudStorageClient
: StorageClient
-
$view
: View
Methods
-
__construct()
: mixed
-
addBucketAlias()
: void
-
clientDownload()
: void
-
clientDownloadInChunks()
: void
-
convertSignedUrlToGsUrl()
: string
-
deleteFile()
: mixed
-
downloadToFile()
: mixed
-
getBucketAliases()
: array<string|int, BucketAlias>|null
-
getDownloadStream()
: StreamInterface
-
getDownloadString()
: string
-
getObjectByPartialName()
: string|null
-
object()
: StorageObject
-
getDownload()
: StorageObject|null
$bucketAliases
private
array<string|int, BucketAlias>
$bucketAliases
= []
$fileUtil
private
FileUtil
$fileUtil
$googleCloudStorageClient
private
StorageClient
$googleCloudStorageClient
$view
private
View
$view
__construct()
public
__construct(FileUtil $fileUtil, View $view) : mixed
Parameters
-
$fileUtil
: FileUtil
-
-
$view
: View
-
addBucketAlias()
public
addBucketAlias(string $bucketName, string $alias) : void
Parameters
-
$bucketName
: string
-
-
$alias
: string
-
clientDownload()
public
clientDownload(string $sourceFile) : void
Parameters
-
$sourceFile
: string
-
-
throws
-
FileNotFoundException
clientDownloadInChunks()
public
clientDownloadInChunks(string $sourceFile) : void
Parameters
-
$sourceFile
: string
-
-
throws
-
FileNotFoundException
convertSignedUrlToGsUrl()
public
convertSignedUrlToGsUrl(string $url) : string
Parameters
-
$url
: string
-
deleteFile()
public
deleteFile(mixed $sourceFile) : mixed
Parameters
-
$sourceFile
: mixed
-
downloadToFile()
public
downloadToFile(string $sourceFile, string $destinationFile) : mixed
Parameters
-
$sourceFile
: string
-
-
$destinationFile
: string
-
-
throws
-
FileNotFoundException
getBucketAliases()
public
getBucketAliases() : array<string|int, BucketAlias>|null
getDownloadStream()
public
getDownloadStream(string $sourceFile) : StreamInterface
Parameters
-
$sourceFile
: string
-
-
throws
-
FileNotFoundException
Return values
StreamInterface
getDownloadString()
public
getDownloadString(string $sourceFile) : string
Parameters
-
$sourceFile
: string
-
-
throws
-
FileNotFoundException
getObjectByPartialName()
public
getObjectByPartialName(mixed $bucketName, mixed $prefix) : string|null
Parameters
-
$bucketName
: mixed
-
-
$prefix
: mixed
-
Return values
string|null
object()
public
object(Uri $uri) : StorageObject
Parameters
-
$uri
: Uri
-
-
throws
-
FileNotFoundException
Return values
StorageObject
getDownload()
private
getDownload(string $sourceFile) : StorageObject|null
Parameters
-
$sourceFile
: string
-
-
throws
-
FileNotFoundException
Return values
StorageObject|null