Copied!

TaxonomyServiceInterface

TaxonomyServiceInterface.php : 22
Interface

Constants

publicMOVE_POSITION_NEXT

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

publicMOVE_POSITION_PREV

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

Methods

publiccountAllEntries()

TaxonomyServiceInterface.php : 142
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 : 157
public countEntryChildren(TaxonomyEntry $parentEntry) : int

Parameters

Name Type Default value Description
$parentEntry TaxonomyEntry - -

Return values

int

publiccreateEntry()

TaxonomyServiceInterface.php : 79
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

publicfindEntries()

TaxonomyServiceInterface.php : 167

Finds the entries matching the query which the current user can read.

public findEntries(TaxonomyEntryQuery $query) : TaxonomyEntryList

Both the returned page and the total count include only entries the current user can read, ordered by entry ID.

Parameters

Name Type Default value Description
$query TaxonomyEntryQuery - -

Return values

TaxonomyEntryList

Tags
Throws
NotFoundException

if the taxonomy does not exist

publicgetPath()

TaxonomyServiceInterface.php : 174
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 : 133
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 : 44
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 : 71
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 : 33
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 : 52
public loadEntryByIdentifier(string $identifier[, string|null $taxonomyName = null ]) : TaxonomyEntry

Parameters

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

Return values

TaxonomyEntry

Tags
Throws
UnauthorizedException
Throws
BadStateException
Throws
InvalidArgumentException
Throws
NotFoundException

publicloadEntryChildren()

TaxonomyServiceInterface.php : 151
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 : 63
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 : 106
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 : 119
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 : 98
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 : 87
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