SaveFileService
in package
Table of Contents
Constants
- FILE_UPLOAD_KEY = 'import'
Properties
- $em : EntityManager
- $storage : GoogleCloudStorageComponent
- $bucket : mixed
- $clientRepository : ClientRepository
- $response : mixed
- $userId : mixed
Methods
- __construct() : mixed
- deleteLocalFile() : mixed
- getCloudFullPath() : mixed
- getFile() : mixed
- handleUpload() : mixed
- saveLocalFile() : mixed
- getClient() : Client
- getCloudFolderPath() : mixed
- getCloudUploadPath() : mixed
- getDateStringForFile() : mixed
- getDateTime() : mixed
- getExtension() : mixed
- getFilename() : mixed
- getLocalFilePath() : string
- getStorageRelativePathPart() : string
- getUploadFolderPath() : mixed
- getUploadHandler() : FileUpload
- saveToCloud() : mixed
- createDirectoryIfNeeded() : mixed
- getBucket() : mixed
- getCloudFileName() : mixed
Constants
FILE_UPLOAD_KEY
public
mixed
FILE_UPLOAD_KEY
= 'import'
Properties
$em
protected
EntityManager
$em
$storage
protected
GoogleCloudStorageComponent
$storage
$bucket
private
mixed
$bucket
$clientRepository
private
ClientRepository
$clientRepository
$response
private
mixed
$response
$userId
private
mixed
$userId
Methods
__construct()
public
__construct(ClientRepository $clientRepository, GoogleCloudStorageComponent $storage, EntityManager $em, Response $response) : mixed
Parameters
- $clientRepository : ClientRepository
- $storage : GoogleCloudStorageComponent
- $em : EntityManager
- $response : Response
deleteLocalFile()
public
deleteLocalFile() : mixed
getCloudFullPath()
public
getCloudFullPath() : mixed
getFile()
public
getFile() : mixed
handleUpload()
public
handleUpload(mixed $bucket) : mixed
Parameters
- $bucket : mixed
saveLocalFile()
public
saveLocalFile(mixed $userId) : mixed
Parameters
- $userId : mixed
getClient()
protected
getClient() : Client
Return values
ClientgetCloudFolderPath()
protected
getCloudFolderPath() : mixed
getCloudUploadPath()
protected
getCloudUploadPath() : mixed
getDateStringForFile()
protected
getDateStringForFile() : mixed
getDateTime()
protected
getDateTime() : mixed
getExtension()
protected
getExtension() : mixed
getFilename()
protected
getFilename() : mixed
getLocalFilePath()
protected
getLocalFilePath() : string
Return values
stringgetStorageRelativePathPart()
protected
getStorageRelativePathPart() : string
Return values
stringgetUploadFolderPath()
protected
getUploadFolderPath() : mixed
getUploadHandler()
protected
getUploadHandler() : FileUpload
Return values
FileUploadsaveToCloud()
protected
saveToCloud() : mixed
createDirectoryIfNeeded()
private
createDirectoryIfNeeded(mixed $path) : mixed
Parameters
- $path : mixed
getBucket()
private
getBucket() : mixed
getCloudFileName()
private
getCloudFileName() : mixed