PHP Class eZ\Publish\Core\Repository\FieldTypeTools

This interface cannot be retrieved through the Public API and is not meant to be used by its users. It is only available to {@link * eZ\Publish\SPI\FieldType\EventListener} implementers through the {@link * eZ\Publish\SPI\FieldType\EventListener::handleEvent()} method.
Deprecation: (Not implemented)
Inheritance: implements eZ\Publish\API\Repository\FieldTypeTools
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode Description
addRelation ( integer $relationType, eZ\Publish\API\Repository\Values\Content\VersionInfo $sourceVersion, mixed $destinationContentId, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition = null ) : eZ\Publish\API\Repository\Values\Content\Relation Adds a relation.

Method Details

addRelation() public méthode

Adds a relation.
public addRelation ( integer $relationType, eZ\Publish\API\Repository\Values\Content\VersionInfo $sourceVersion, mixed $destinationContentId, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition = null ) : eZ\Publish\API\Repository\Values\Content\Relation
$relationType integer One of Relation::COMMON, Relation::EMBED, Relation::LINK or Relation::FIELD
$sourceVersion eZ\Publish\API\Repository\Values\Content\VersionInfo
$destinationContentId mixed
$fieldDefinition eZ\Publish\API\Repository\Values\ContentType\FieldDefinition
Résultat eZ\Publish\API\Repository\Values\Content\Relation The newly created relation