Method | Description | |
---|---|---|
__construct ( eZ\Publish\Core\IO\IOServiceInterface $publishedIOService, eZ\Publish\Core\IO\IOServiceInterface $draftIOService, eZ\Publish\Core\FieldType\Image\IO\OptionsProvider $optionsProvider ) | ||
createBinaryFile ( BinaryFileCreateStruct $binaryFileCreateStruct ) | ||
deleteBinaryFile ( |
||
deleteDirectory ( string $path ) | Deletes a directory. | |
exists ( $binaryFileId ) | ||
getExternalPath ( $internalId ) | ||
getFileContents ( |
||
getFileInputStream ( |
||
getInternalPath ( $externalId ) | ||
getMimeType ( $binaryFileId ) | ||
getUri ( $binaryFileId ) | ||
loadBinaryFile ( $binaryFileId ) | ||
loadBinaryFileByUri ( $binaryFileUri ) | Since both services should use the same uri, we can use any of them to *GET* the URI. | |
newBinaryCreateStructFromLocalFile ( $localFile ) | ||
newBinaryCreateStructFromUploadedFile ( array $uploadedFile ) | ||
setPrefix ( $prefix ) | Sets the IOService prefix. |
Method | Description | |
---|---|---|
isDraftImagePath ( string $internalPath ) : boolean | Checks if $internalPath is a published image path. | |
isPublishedImagePath ( string $internalPath ) : boolean | Checks if $internalPath is a published image path. |
Method | Description | |
---|---|---|
setPrefixes ( ) | Computes the paths to published & draft images path using the options from the provider. |
public __construct ( eZ\Publish\Core\IO\IOServiceInterface $publishedIOService, eZ\Publish\Core\IO\IOServiceInterface $draftIOService, eZ\Publish\Core\FieldType\Image\IO\OptionsProvider $optionsProvider ) | ||
$publishedIOService | eZ\Publish\Core\IO\IOServiceInterface | |
$draftIOService | eZ\Publish\Core\IO\IOServiceInterface | |
$optionsProvider | eZ\Publish\Core\FieldType\Image\IO\OptionsProvider |
public createBinaryFile ( BinaryFileCreateStruct $binaryFileCreateStruct ) | ||
$binaryFileCreateStruct | eZ\Publish\Core\IO\Values\BinaryFileCreateStruct |
public deleteBinaryFile ( |
||
$binaryFile |
public deleteDirectory ( string $path ) | ||
$path | string |
public getFileContents ( |
||
$binaryFile |
public getFileInputStream ( |
||
$binaryFile |
protected isDraftImagePath ( string $internalPath ) : boolean | ||
$internalPath | string | |
return | boolean | true if $internalPath is the path to a published image |
protected isPublishedImagePath ( string $internalPath ) : boolean | ||
$internalPath | string | |
return | boolean | true if $internalPath is the path to a published image |
public loadBinaryFileByUri ( $binaryFileUri ) |
public newBinaryCreateStructFromLocalFile ( $localFile ) |
public newBinaryCreateStructFromUploadedFile ( array $uploadedFile ) | ||
$uploadedFile | array |