HumHub Documentation (unofficial)

ContentTagService
in package

Table of Contents

Properties

$content  : Content

Methods

__construct()  : mixed
addTag()  : bool
Adds a new ContentTagRelation for this content and the given $tag instance.
addTags()  : void
Adds the given ContentTag array to this content.

Properties

Methods

addTag()

Adds a new ContentTagRelation for this content and the given $tag instance.

public addTag(ContentTag $tag) : bool
Parameters
$tag : ContentTag
Tags
since
1.2.2
Return values
bool

if the provided tag is part of another ContentContainer

addTags()

Adds the given ContentTag array to this content.

public addTags(mixed $tags) : void
Parameters
$tags : mixed

ContentTag[]

Tags
since
1.3

        
On this page

Search results