Class

eZ\Publish\Core\FieldType\RichText\RichTextStorage

class RichTextStorage extends GatewayBasedStorage

Methods

__construct(StorageGateway $gateway, LoggerInterface $logger = null)

null|bool copyLegacyField(VersionInfo $versionInfo, Field $field, Field $originalField, array $context)

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.

from GatewayBasedStorage
mixed storeFieldData(VersionInfo $versionInfo, Field $field, array $context)

getFieldData(VersionInfo $versionInfo, Field $field, array $context)

Modifies $field if needed, using external data (like for Urls).

bool deleteFieldData(VersionInfo $versionInfo, array $fieldIds, array $context)

Deletes field data for all $fieldIds in the version identified by $versionInfo.

bool hasFieldData()

Checks if field type has external data to deal with.

Field[] getIndexData(VersionInfo $versionInfo, Field $field, array $context)

Get index data for external data for search backend.

Details

at line 36
public __construct(StorageGateway $gateway, LoggerInterface $logger = null)

Parameters

StorageGateway $gateway
LoggerInterface $logger

in GatewayBasedStorage at line 48
public null|bool copyLegacyField(VersionInfo $versionInfo, Field $field, Field $originalField, array $context)

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.

By default the method falls back to the {@link \eZ\Publish\SPI\FieldType\FieldStorage::storeFieldData()}. External storages implement this method as needed.

Parameters

VersionInfo $versionInfo
Field $field
Field $originalField
array $context

Return Value

null|bool Same as {@link \eZ\Publish\SPI\FieldType\FieldStorage::storeFieldData()}.

at line 45
public mixed storeFieldData(VersionInfo $versionInfo, Field $field, array $context)

Parameters

VersionInfo $versionInfo
Field $field
array $context

Return Value

mixed null|true

See also

\eZ\Publish\SPI\FieldType\FieldStorage

at line 128
public getFieldData(VersionInfo $versionInfo, Field $field, array $context)

Modifies $field if needed, using external data (like for Urls).

Parameters

VersionInfo $versionInfo
Field $field
array $context

at line 181
public bool deleteFieldData(VersionInfo $versionInfo, array $fieldIds, array $context)

Deletes field data for all $fieldIds in the version identified by $versionInfo.

Parameters

VersionInfo $versionInfo
array $fieldIds Array of field IDs
array $context

Return Value

bool

at line 193
public bool hasFieldData()

Checks if field type has external data to deal with.

Return Value

bool

at line 198
public Field[] getIndexData(VersionInfo $versionInfo, Field $field, array $context)

Get index data for external data for search backend.

Parameters

VersionInfo $versionInfo
Field $field
array $context

Return Value

Field[]