PHP 클래스 eZ\Publish\Core\FieldType\GatewayBasedStorage
This class gives a common basis to realized gateway based storage
dispatching. It is intended to deal as a base class for FieldType storages,
giving a common infrastructure to handle multiple gateways, based on the
context provided by the SPI.
The method {@link getGateway()} is used in derived classes to retrieve the
correct gateway implementation, based on the context.
파일 보기
프로젝트 열기: ezsystems/ezpublish-kernel
1 사용 예제들
보호된 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$gateways |
StorageGateway[] |
Gateways. |
|
공개 메소드들
메소드 |
설명 |
|
__construct ( array $gateways = [] ) |
Construct from gateways. |
|
addGateway ( string $identifier, StorageGateway $gateway ) |
Adds a storage $gateway assigned to the given $identifier. |
|
copyLegacyField ( eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo, eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\Field $originalField, array $context ) : null | boolean |
This method is used exclusively by Legacy Storage to copy external data of existing field in main language to
the untranslatable field not passed in create or update struct, but created implicitly in storage layer. |
|
보호된 메소드들
메소드 |
설명 |
|
getGateway ( array $context ) : StorageGateway |
Retrieve the fitting gateway, base on the identifier in $context. |
|
메소드 상세
Adds a storage $gateway assigned to the given $identifier.
By default the method falls back to the {@link \eZ\Publish\SPI\FieldType\FieldStorage::storeFieldData()}.
External storages implement this method as needed.
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 ) : null | boolean |
$versionInfo |
eZ\Publish\SPI\Persistence\Content\VersionInfo |
|
$field |
eZ\Publish\SPI\Persistence\Content\Field |
|
$originalField |
eZ\Publish\SPI\Persistence\Content\Field |
|
$context |
array |
|
리턴 |
null | boolean |
Same as {@link \eZ\Publish\SPI\FieldType\FieldStorage::storeFieldData()}. |
Retrieve the fitting gateway, base on the identifier in $context.
프로퍼티 상세
protected StorageGateway[],eZ\Publish\Core\FieldType $gateways |
리턴 |
StorageGateway[] |
|