Property | Type | Description | |
---|---|---|---|
$persistenceHandler | eZ\Publish\SPI\Persistence\Handler |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\SPI\Persistence\Handler $handler ) | Setups service with reference to repository object that created it & corresponding handler. | |
appendFieldRelations ( array &$relations, array &$locationIdToContentIdMapping, eZ\Publish\SPI\FieldType\FieldType $fieldType, |
Appends destination Content ids of given $fieldValue to the $relation array. | |
processFieldRelations ( array $inputRelations, mixed $sourceContentId, mixed $sourceContentVersionNo, eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, array $existingRelations = [] ) | Persists relation data for a content version. |
public __construct ( eZ\Publish\SPI\Persistence\Handler $handler ) | ||
$handler | eZ\Publish\SPI\Persistence\Handler |
public appendFieldRelations ( array &$relations, array &$locationIdToContentIdMapping, eZ\Publish\SPI\FieldType\FieldType $fieldType, |
||
$relations | array | |
$locationIdToContentIdMapping | array | An array with Location Ids as keys and corresponding Content Id as values |
$fieldType | eZ\Publish\SPI\FieldType\FieldType | |
$fieldValue | Accepted field value. | |
$fieldDefinitionId | string |
public processFieldRelations ( array $inputRelations, mixed $sourceContentId, mixed $sourceContentVersionNo, eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, array $existingRelations = [] ) | ||
$inputRelations | array | |
$sourceContentId | mixed | |
$sourceContentVersionNo | mixed | |
$contentType | eZ\Publish\API\Repository\Values\ContentType\ContentType | |
$existingRelations | array | An array of existing relations for Content version (empty when creating new content) |