PHP 클래스 eZ\Publish\Core\FieldType\Image\IO\Legacy
Acts as a dispatcher between the two IOService instances required by FieldType\Image in Legacy.
- One is the usual one, as used in ImageStorage, that uses 'images' as the prefix
- The other is a special one, that uses 'images-versioned' as the prefix, in order to cope with content created
from the backoffice
To load a binary file, this service will first try with the normal IOService,
and on exception, will fall back to the draft IOService.
In addition, loadBinaryFile() will also hide the need to explicitly call getExternalPath()
on the internal path stored in legacy.
파일 보기
프로젝트 열기: ezsystems/ezpublish-kernel
1 사용 예제들
공개 메소드들
보호된 메소드들
비공개 메소드들
메소드 |
설명 |
|
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 |
|
createBinaryFile()
공개 메소드
deleteBinaryFile()
공개 메소드
public deleteBinaryFile ( BinaryFile $binaryFile ) |
$binaryFile |
eZ\Publish\Core\IO\Values\BinaryFile |
|
public exists ( $binaryFileId ) |
public getFileContents ( BinaryFile $binaryFile ) |
$binaryFile |
eZ\Publish\Core\IO\Values\BinaryFile |
|
public getUri ( $binaryFileId ) |
isDraftImagePath()
보호된 메소드
Checks if $internalPath is a published image path.
isPublishedImagePath()
보호된 메소드
Checks if $internalPath is a published image path.
loadBinaryFileByUri()
공개 메소드
Since both services should use the same uri, we can use any of them to *GET* the URI.
newBinaryCreateStructFromLocalFile()
공개 메소드
newBinaryCreateStructFromUploadedFile()
공개 메소드
Sets the IOService prefix.