Copied!

TaxonomyEntryAssignmentServiceInterface

TaxonomyEntryAssignmentServiceInterface.php : 21
Interface

Methods

publicassignMultipleToContent()

TaxonomyEntryAssignmentServiceInterface.php : 61
public assignMultipleToContent(Content $content, array<string|int, TaxonomyEntry> $entries[, int|null $versionNo = null ]) : void

Parameters

Name Type Default value Description
$content Content - -
$entries array<string|int, TaxonomyEntry> - -
$versionNo int|null null -

publicassignToContent()

TaxonomyEntryAssignmentServiceInterface.php : 40
public assignToContent(Content $content, TaxonomyEntry $entry[, int|null $versionNo = null ]) : void

Parameters

Name Type Default value Description
$content Content - -
$entry TaxonomyEntry - -
$versionNo int|null null -
Tags
Throws
NotFoundException
Throws
UnauthorizedException

if the current user is not allowed to assign the content to the entry

Throws
ForbiddenException

if the entry is the root entry of its taxonomy

Throws
InvalidArgumentException
Throws
BadStateException

publicloadAssignmentById()

TaxonomyEntryAssignmentServiceInterface.php : 26
public loadAssignmentById(int $id) : TaxonomyEntryAssignment

Parameters

Name Type Default value Description
$id int - -

Return values

TaxonomyEntryAssignment

Tags
Throws
NotFoundException

publicloadAssignments()

TaxonomyEntryAssignmentServiceInterface.php : 28
public loadAssignments(Content $content[, int|null $versionNo = null ]) : TaxonomyEntryAssignmentCollection

Parameters

Name Type Default value Description
$content Content - -
$versionNo int|null null -

Return values

TaxonomyEntryAssignmentCollection

publicunassignFromContent()

TaxonomyEntryAssignmentServiceInterface.php : 52
public unassignFromContent(Content $content, TaxonomyEntry $entry[, int|null $versionNo = null ]) : void

Parameters

Name Type Default value Description
$content Content - -
$entry TaxonomyEntry - -
$versionNo int|null null -
Tags
Throws
NotFoundException
Throws
UnauthorizedException

if the current user is not allowed to unassign the content from the entry

Throws
InvalidArgumentException
Throws
BadStateException

publicunassignMultipleFromContent()

TaxonomyEntryAssignmentServiceInterface.php : 70
public unassignMultipleFromContent(Content $content, array<string|int, TaxonomyEntry> $entries[, int|null $versionNo = null ]) : void

Parameters

Name Type Default value Description
$content Content - -
$entries array<string|int, TaxonomyEntry> - -
$versionNo int|null null -