vBulletin v6.0.4

vB_Library_Tags extends vB_Library
in package

vB_Library_Tags

Tags
access

public

Table of Contents

Methods

__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
clearCache()  : mixed
deleteUserTagAssociations()  : mixed
getContentInstance()  : mixed
getTagList()  : array<string|int, mixed>
Get tag info
instance()  : static
Returns singleton instance of self.
monitorWords()  : mixed
Checks if the text contains monitored words, and if so, sends notifications to admins and moderators if the setting is on.

Methods

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(array<string|int, mixed> $serialized) : void
Parameters
$serialized : array<string|int, mixed>

clearCache()

public static clearCache() : mixed

deleteUserTagAssociations()

public deleteUserTagAssociations(mixed $userid) : mixed
Parameters
$userid : mixed

getContentInstance()

public static getContentInstance(mixed $contenttypeid) : mixed
Parameters
$contenttypeid : mixed

getTagList()

Get tag info

public getTagList(array<string|int, mixed> $taglist) : array<string|int, mixed>

Gets the id and tag value, keyed by the original tag value. This is intended to do several things

  1. Get the case for a tagname that might have been given the wrong case
  2. Substitute the canonical tag for synonyms
  3. Get the tagid.
Parameters
$taglist : array<string|int, mixed>

-- string array of tag values

Return values
array<string|int, mixed>

-- array of [tagname => ['tagid' => tagid, 'tagtext' => correctedtagname]] If a value in the list isn't a valid tag, it will return [tagname => false]

instance()

Returns singleton instance of self.

public static instance(mixed $class) : static
Parameters
$class : mixed
Return values
static
  • Reference to singleton instance of the requested library class

monitorWords()

Checks if the text contains monitored words, and if so, sends notifications to admins and moderators if the setting is on.

public monitorWords(mixed $text, mixed $type, mixed $nodeid[, mixed $userid = null ][, mixed $insertNotifications = true ][, mixed $currentuserid = 0 ]) : mixed
Parameters
$text : mixed
$type : mixed
$nodeid : mixed
$userid : mixed = null
$insertNotifications : mixed = true
$currentuserid : mixed = 0
Tags
deprecated

use the functions from the notification library directly.


        
On this page

Search results