Свойство | Type | Description | |
---|---|---|---|
$children | |||
$id | integer | ||
$idPath | string | ||
$name | string | ||
$parent | |||
$parentId | integer |
Méthode | Description | |
---|---|---|
addTagToElement ( $cType, $cId, |
adds given tag to element | |
batchAssignTagsToElement ( $cType, array $cIds, array $tagIds, boolean | false $replace = false ) | ||
correctPath ( ) | ||
getById ( $id ) : Pimcore\Model\Element\Tag | ||
getChildren ( ) : |
||
getElementsForTag ( |
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 ( ) : |
||
getParentId ( ) : integer | ||
getTagsForElement ( $cType, $cId ) : |
returns all assigned tags for element | |
hasChildren ( ) | ||
removeTagFromElement ( $cType, $cId, |
removes given tag from element | |
save ( ) | ||
setId ( integer $id ) : |
||
setName ( string $name ) : |
||
setParentId ( integer $parentId ) : |
||
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 |
public static addTagToElement ( $cType, $cId, |
||
$cType | ||
$cId | ||
$tag |
public static getById ( $id ) : Pimcore\Model\Element\Tag | ||
$id | ||
Résultat | Pimcore\Model\Element\Tag |
public static getElementsForTag ( |
||
$tag | The tag to search for | |
$type | string | The type of elements to search for: 'document', 'asset' or 'object' |
$subtypes | array | Filter by subtypes, eg. page, object, email, folder etc. |
$classNames | array | For objects only: filter by classnames |
$considerChildTags | boolean | Look for elements having one of $tag's children assigned |
Résultat | array |
public static getTagsForElement ( $cType, $cId ) : |
||
$cType | ||
$cId | ||
Résultat |
public static removeTagFromElement ( $cType, $cId, |
||
$cType | ||
$cId | ||
$tag |
public setParentId ( integer $parentId ) : |
||
$parentId | integer | |
Résultat |
public static setTagsForElement ( $cType, $cId, array $tags ) | ||
$cType | ||
$cId | ||
$tags | array |