PHP Класс Gaufrette\Adapter\AzureBlobStorage

Автор: Luciano Mammino ([email protected])
Автор: Paweł Czyżewski ([email protected])
Наследование: implements Gaufrette\Adapter, implements Gaufrette\Adapter\MetadataSupporter
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$blobProxy MicrosoftAzure\Storage\Blob\Internal\IBlob
$blobProxyFactory Gaufrette\Adapter\AzureBlobStorage\BlobProxyFactoryInterface
$containerName string
$detectContentType boolean

Открытые методы

Метод Описание
__construct ( Gaufrette\Adapter\AzureBlobStorage\BlobProxyFactoryInterface $blobProxyFactory, string $containerName, boolean $create = false, boolean $detectContentType = true )
createContainer ( string $containerName, MicrosoftAzure\Storage\Blob\Models\CreateContainerOptions $options = null ) Creates a new container.
delete ( $key )
deleteContainer ( string $containerName, MicrosoftAzure\Storage\Blob\Models\DeleteContainerOptions $options = null ) Deletes a container.
exists ( $key )
getMetadata ( $key )
isDirectory ( $key )
keys ( )
mtime ( $key )
read ( $key )
rename ( $sourceKey, $targetKey )
setMetadata ( $key, $content )
write ( $key, $content )

Защищенные методы

Метод Описание
failIfContainerNotFound ( MicrosoftAzure\Storage\Common\ServiceException $exception, string $action ) Throws a runtime exception if a give ServiceException derived from a "container not found" error.
getErrorCodeFromServiceException ( MicrosoftAzure\Storage\Common\ServiceException $exception ) : string Extracts the error code from a service exception.
init ( ) Lazy initialization, automatically called when some method is called after construction.

Описание методов

__construct() публичный Метод

public __construct ( Gaufrette\Adapter\AzureBlobStorage\BlobProxyFactoryInterface $blobProxyFactory, string $containerName, boolean $create = false, boolean $detectContentType = true )
$blobProxyFactory Gaufrette\Adapter\AzureBlobStorage\BlobProxyFactoryInterface
$containerName string
$create boolean
$detectContentType boolean

createContainer() публичный Метод

Creates a new container.
public createContainer ( string $containerName, MicrosoftAzure\Storage\Blob\Models\CreateContainerOptions $options = null )
$containerName string
$options MicrosoftAzure\Storage\Blob\Models\CreateContainerOptions

delete() публичный Метод

public delete ( $key )

deleteContainer() публичный Метод

Deletes a container.
public deleteContainer ( string $containerName, MicrosoftAzure\Storage\Blob\Models\DeleteContainerOptions $options = null )
$containerName string
$options MicrosoftAzure\Storage\Blob\Models\DeleteContainerOptions

exists() публичный Метод

public exists ( $key )

failIfContainerNotFound() защищенный Метод

Throws a runtime exception if a give ServiceException derived from a "container not found" error.
protected failIfContainerNotFound ( MicrosoftAzure\Storage\Common\ServiceException $exception, string $action )
$exception MicrosoftAzure\Storage\Common\ServiceException
$action string

getErrorCodeFromServiceException() защищенный Метод

Extracts the error code from a service exception.
protected getErrorCodeFromServiceException ( MicrosoftAzure\Storage\Common\ServiceException $exception ) : string
$exception MicrosoftAzure\Storage\Common\ServiceException
Результат string

getMetadata() публичный Метод

public getMetadata ( $key )

init() защищенный Метод

Lazy initialization, automatically called when some method is called after construction.
protected init ( )

isDirectory() публичный Метод

public isDirectory ( $key )

keys() публичный Метод

public keys ( )

mtime() публичный Метод

public mtime ( $key )

read() публичный Метод

public read ( $key )

rename() публичный Метод

public rename ( $sourceKey, $targetKey )

setMetadata() публичный Метод

public setMetadata ( $key, $content )

write() публичный Метод

public write ( $key, $content )

Описание свойств

$blobProxy защищенное свойство

protected IBlob,MicrosoftAzure\Storage\Blob\Internal $blobProxy
Результат MicrosoftAzure\Storage\Blob\Internal\IBlob

$blobProxyFactory защищенное свойство

protected BlobProxyFactoryInterface,Gaufrette\Adapter\AzureBlobStorage $blobProxyFactory
Результат Gaufrette\Adapter\AzureBlobStorage\BlobProxyFactoryInterface

$containerName защищенное свойство

protected string $containerName
Результат string

$detectContentType защищенное свойство

protected bool $detectContentType
Результат boolean