Copied!

TaxonomyServiceInterface

TaxonomyServiceInterface.php : 16

Constants

publicMOVE_POSITION_NEXT

TaxonomyServiceInterface.php : 18
public mixed MOVE_POSITION_NEXT = 'next'

publicMOVE_POSITION_PREV

TaxonomyServiceInterface.php : 19
public mixed MOVE_POSITION_PREV = 'prev'

Methods

publiccountAllEntries()

TaxonomyServiceInterface.php : 119
public countAllEntries([string|null $taxonomyName = null ]) : int

Parameters

Name Type Default value Description
$taxonomyName string|null null -

Return values

int

Tags
Throws
NotFoundException

publiccountEntryChildren()

TaxonomyServiceInterface.php : 130
public countEntryChildren(TaxonomyEntry $parentEntry) : int

Parameters

Name Type Default value Description
$parentEntry TaxonomyEntry - -

Return values

int

publiccreateEntry()

TaxonomyServiceInterface.php : 70
public createEntry(TaxonomyEntryCreateStruct $createStruct) : TaxonomyEntry

Parameters

Name Type Default value Description
$createStruct TaxonomyEntryCreateStruct - -

Return values

TaxonomyEntry

Tags
Throws
UnauthorizedException
Throws
BadStateException
Throws
InvalidArgumentException
Throws
NotFoundException

publicgetPath()

TaxonomyServiceInterface.php : 137
public getPath(TaxonomyEntry $entry) : iterable<string|int, TaxonomyEntry>

Parameters

Name Type Default value Description
$entry TaxonomyEntry - -

Return values

iterable<string|int, TaxonomyEntry>

Tags
Throws
NotFoundException

publicloadAllEntries()

TaxonomyServiceInterface.php : 114
public loadAllEntries([string|null $taxonomyName = null ][, int|null $limit = 30 ][, int $offset = 0 ]) : Traversable<string|int, TaxonomyEntry>

Parameters

Name Type Default value Description
$taxonomyName string|null null -
$limit int|null 30 -
$offset int 0 -

Return values

Traversable<string|int, TaxonomyEntry>

Tags
Throws
BadStateException
Throws
UnauthorizedException
Throws
InvalidArgumentException
Throws
NotFoundException

publicloadEntriesByIds()

TaxonomyServiceInterface.php : 38
public loadEntriesByIds(array<string|int, int> $ids) : Traversable<string|int, TaxonomyEntry>

Parameters

Name Type Default value Description
$ids array<string|int, int> - -

Return values

Traversable<string|int, TaxonomyEntry>

Tags
Throws
UnauthorizedException
Throws
BadStateException
Throws
InvalidArgumentException

publicloadEntryByContentId()

TaxonomyServiceInterface.php : 62
public loadEntryByContentId(int $contentId) : TaxonomyEntry

Parameters

Name Type Default value Description
$contentId int - -

Return values

TaxonomyEntry

Tags
Throws
UnauthorizedException
Throws
BadStateException
Throws
InvalidArgumentException
Throws
NotFoundException

publicloadEntryById()

TaxonomyServiceInterface.php : 27
public loadEntryById(int $id) : TaxonomyEntry

Parameters

Name Type Default value Description
$id int - -

Return values

TaxonomyEntry

Tags
Throws
BadStateException
Throws
InvalidArgumentException
Throws
UnauthorizedException
Throws
NotFoundException

publicloadEntryByIdentifier()

TaxonomyServiceInterface.php : 46
public loadEntryByIdentifier(string $identifier[, string $taxonomyName = null ]) : TaxonomyEntry

Parameters

Name Type Default value Description
$identifier string - -
$taxonomyName string null -

Return values

TaxonomyEntry

Tags
Throws
UnauthorizedException
Throws
BadStateException
Throws
InvalidArgumentException
Throws
NotFoundException

publicloadEntryChildren()

TaxonomyServiceInterface.php : 128
public loadEntryChildren(TaxonomyEntry $parentEntry[, int|null $limit = 30 ][, int $offset = 0 ]) : Traversable<string|int, TaxonomyEntry>

Parameters

Name Type Default value Description
$parentEntry TaxonomyEntry - -
$limit int|null 30 -
$offset int 0 -

Return values

Traversable<string|int, TaxonomyEntry>

Tags
Throws
BadStateException
Throws
UnauthorizedException
Throws
InvalidArgumentException

publicloadRootEntry()

TaxonomyServiceInterface.php : 54
public loadRootEntry(string $taxonomyName) : TaxonomyEntry

Parameters

Name Type Default value Description
$taxonomyName string - -

Return values

TaxonomyEntry

Tags
Throws
UnauthorizedException
Throws
BadStateException
Throws
InvalidArgumentException
Throws
NotFoundException

publicmoveEntry()

TaxonomyServiceInterface.php : 94
public moveEntry(TaxonomyEntry $entry, TaxonomyEntry $newParent) : void

Parameters

Name Type Default value Description
$entry TaxonomyEntry - -
$newParent TaxonomyEntry - -
Tags
Throws
BadStateException
Throws
UnauthorizedException
Throws
InvalidArgumentException
Throws
NotFoundException

publicmoveEntryRelativeToSibling()

TaxonomyServiceInterface.php : 104
public moveEntryRelativeToSibling(TaxonomyEntry $entry, TaxonomyEntry $sibling, string $position) : void

Parameters

Name Type Default value Description
$entry TaxonomyEntry - -
$sibling TaxonomyEntry - -
$position string - -
Tags
Throws
BadStateException
Throws
UnauthorizedException
Throws
InvalidArgumentException
Throws
NotFoundException

publicremoveEntry()

TaxonomyServiceInterface.php : 86
public removeEntry(TaxonomyEntry $entry) : void

Parameters

Name Type Default value Description
$entry TaxonomyEntry - -
Tags
Throws
BadStateException
Throws
UnauthorizedException
Throws
InvalidArgumentException
Throws
NotFoundException

publicupdateEntry()

TaxonomyServiceInterface.php : 78
public updateEntry(TaxonomyEntry $taxonomyEntry, TaxonomyEntryUpdateStruct $updateStruct) : TaxonomyEntry

Parameters

Name Type Default value Description
$taxonomyEntry TaxonomyEntry - -
$updateStruct TaxonomyEntryUpdateStruct - -

Return values

TaxonomyEntry

Tags
Throws
BadStateException
Throws
UnauthorizedException
Throws
InvalidArgumentException
Throws
NotFoundException