PHP Class eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage

Inheritance: extends eZ\Publish\Core\FieldType\GatewayBasedStorage
Mostrar archivo Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$IOService eZ\Publish\Core\IO\IOServiceInterface An instance of IOService configured to store to the images folder.
$downloadUrlGenerator eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator
$mimeTypeDetector eZ\Publish\SPI\IO\MimeTypeDetector
$pathGenerator eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator

Public Methods

Method Description
__construct ( array $gateways, eZ\Publish\Core\IO\IOServiceInterface $IOService, eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator $pathGenerator, eZ\Publish\SPI\IO\MimeTypeDetector $mimeTypeDetector ) Construct from gateways.
copyLegacyField ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\Field $originalField, array $context )
deleteFieldData ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, array $fieldIds, array $context )
getFieldData ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field, array $context )
getIndexData ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field, array $context )
hasFieldData ( )
setDownloadUrlGenerator ( eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator $downloadUrlGenerator )
storeFieldData ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field, array $context )

Protected Methods

Method Description
removeOldFile ( mixed $fieldId, string $versionNo, array $context ) Removes the old file referenced by $fieldId in $versionNo, if not referenced else where.

Method Details

__construct() public method

Construct from gateways.
public __construct ( array $gateways, eZ\Publish\Core\IO\IOServiceInterface $IOService, eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator $pathGenerator, eZ\Publish\SPI\IO\MimeTypeDetector $mimeTypeDetector )
$gateways array
$IOService eZ\Publish\Core\IO\IOServiceInterface
$pathGenerator eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator
$mimeTypeDetector eZ\Publish\SPI\IO\MimeTypeDetector

copyLegacyField() public method

public copyLegacyField ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\Field $originalField, array $context )
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo
$field eZ\Publish\SPI\Persistence\Content\Field
$originalField eZ\Publish\SPI\Persistence\Content\Field
$context array

deleteFieldData() public method

public deleteFieldData ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, array $fieldIds, array $context )
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo
$fieldIds array
$context array

getFieldData() public method

public getFieldData ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field, array $context )
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo
$field eZ\Publish\SPI\Persistence\Content\Field
$context array

getIndexData() public method

public getIndexData ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field, array $context )
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo
$field eZ\Publish\SPI\Persistence\Content\Field
$context array

hasFieldData() public method

public hasFieldData ( )

removeOldFile() protected method

Removes the old file referenced by $fieldId in $versionNo, if not referenced else where.
protected removeOldFile ( mixed $fieldId, string $versionNo, array $context )
$fieldId mixed
$versionNo string
$context array

setDownloadUrlGenerator() public method

public setDownloadUrlGenerator ( eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator $downloadUrlGenerator )
$downloadUrlGenerator eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator

storeFieldData() public method

public storeFieldData ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field, array $context )
$versionInfo eZ\Publish\SPI\Persistence\Content\VersionInfo
$field eZ\Publish\SPI\Persistence\Content\Field
$context array

Property Details

$IOService protected_oe property

An instance of IOService configured to store to the images folder.
protected IOServiceInterface,eZ\Publish\Core\IO $IOService
return eZ\Publish\Core\IO\IOServiceInterface

$downloadUrlGenerator protected_oe property

protected PathGenerator,eZ\Publish\SPI\FieldType\BinaryBase $downloadUrlGenerator
return eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator

$mimeTypeDetector protected_oe property

protected MimeTypeDetector,eZ\Publish\SPI\IO $mimeTypeDetector
return eZ\Publish\SPI\IO\MimeTypeDetector

$pathGenerator protected_oe property

protected PathGenerator,eZ\Publish\SPI\FieldType\BinaryBase $pathGenerator
return eZ\Publish\SPI\FieldType\BinaryBase\PathGenerator