Метод | Описание | |
---|---|---|
addTagToElement ( $cType, $cId ) | ||
batchAssignTagsToElement ( $cType, array $cIds, array $tagIds, $replace ) | ||
delete ( ) : void | Deletes object from database | |
getById ( $id ) | ||
getElementsForTag ( |
Retrieves all elements that have a specific tag or one of its child tags assigned | |
getTagsForElement ( $cType, $cId ) : |
||
removeTagFromElement ( $cType, $cId ) | ||
save ( ) : void | Save object to database | |
setTagsForElement ( $cType, $cId, array $tags ) |
Метод | Описание | |
---|---|---|
doAddTagToElement ( $tagId, $cType, $cId ) |
public batchAssignTagsToElement ( $cType, array $cIds, array $tagIds, $replace ) | ||
$cIds | array | |
$tagIds | array |
public 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 |
Результат | array |
public getTagsForElement ( $cType, $cId ) : |
||
$cType | ||
$cId | ||
Результат |
public setTagsForElement ( $cType, $cId, array $tags ) | ||
$tags | array |