메소드 |
설명 |
|
addTagToElement ( $cType, $cId, Tag $tag ) |
adds given tag to element |
|
batchAssignTagsToElement ( $cType, array $cIds, array $tagIds, boolean | false $replace = false ) |
|
|
correctPath ( ) |
|
|
getById ( $id ) : Pimcore\Model\Element\Tag |
|
|
getChildren ( ) : Tag[] |
|
|
getElementsForTag ( Tag $tag, string $type, array $subtypes = [], array $classNames = [], boolean $considerChildTags = false ) : array |
Retrieves all elements that have a specific tag or one of its child tags assigned |
|
getFullIdPath ( ) : string |
|
|
getId ( ) : integer |
|
|
getIdPath ( ) : string |
|
|
getName ( ) : string |
|
|
getNamePath ( $includeOwnName = true ) |
|
|
getParent ( ) : Tag |
|
|
getParentId ( ) : integer |
|
|
getTagsForElement ( $cType, $cId ) : Tag[] |
returns all assigned tags for element |
|
hasChildren ( ) |
|
|
removeTagFromElement ( $cType, $cId, Tag $tag ) |
removes given tag from element |
|
save ( ) |
|
|
setId ( integer $id ) : Tag |
|
|
setName ( string $name ) : Tag |
|
|
setParentId ( integer $parentId ) : Tag |
|
|
setTagsForElement ( $cType, $cId, array $tags ) |
sets given tags to element and removes all other tags
to remove all tags from element, provide empty array of tags |
|