Метод |
Описание |
|
__construct ( string $Name = '' ) |
|
|
addDiscussion ( integer $discussionID, array $tags ) |
Add existing tags to a discussion. |
|
addType ( string $key, array $row ) |
Add a tag type. |
|
canAddTagForType ( $Type ) : boolean |
|
|
counts ( $Column, null $UserID = null ) : array |
|
|
defaultTypes ( ) : array |
|
|
getChildTags ( integer $parentTagID ) : array |
Get the child tags associated with the parent tag id. |
|
getDiscussionTags ( integer $DiscussionID, $indexed = true ) : array |
Get detailed tag data for a given discussion. An example use case would
be when editing discussions: any non-typical tags, that is, ones that
may appear to be categories, should have their specific data available,
like Type, or Source. |
|
getDiscussions ( $Tag, $Limit, $Offset, string $Op = 'or' ) : Gdn_DataSet |
|
|
getRelatedTags ( mixed $tag ) |
Get all of the tags related to the current tag. |
|
getTagTypes ( ) : array |
|
|
instance ( ) : TagModel |
The singleton instance of this object. |
|
joinTags ( &$data ) |
Join the tags to a set of discussions. |
|
save ( array $FormPostValues, boolean $Settings = false ) : boolean | unknown |
|
|
saveDiscussion ( $discussion_id, $tags, array $types = [''], integer $category_id, string $new_type = '' ) |
|
|
setTagSql ( Gdn_SQLDriver $Sql, $Tag, &$Limit, &$Offset, $Op = 'or' ) |
|
|
splitTags ( $TagsString ) : array |
|
|
tagSlug ( $Str ) : string |
|
|
types ( ) |
Get the available tag types. |
|
unpivot ( array $tags ) : array |
Unpivot tags that are grouped by type. |
|
updateTagCountDiscussions ( integer $TagID ) |
Update the tag count per discussion in the Tag table |
|
validateTag ( $Tag ) : boolean |
|
|
validateTags ( $Tags ) : boolean |
|
|
validateType ( $Type ) : boolean |
|
|