vBulletin 5.6.5 API

vB_Library_Prefix extends vB_Library
in package

vB_Library_Page

Tags
access

public

Table of Contents

$instance  : mixed
__serialize()  : mixed
__sleep()  : mixed
__unserialize()  : mixed
__wakeup()  : mixed
buildDatastore()  : mixed
Rebuilds the prefix datastore
clearCache()  : mixed
getContentInstance()  : mixed
getPrefixData()  : mixed
Get the prefix datastore. If it does not exist, rebuild it.
instance()  : vB_PageCache
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.
prefixExists()  : bool
Does the given prefix exist?
__construct()  : mixed
getLibraryClassNameInternal()  : mixed

Properties

$instance

protected static mixed $instance = array()

Methods

__serialize()

public __serialize() : mixed
Return values
mixed —

__sleep()

public __sleep() : mixed
Return values
mixed —

__unserialize()

public __unserialize(mixed $serialized) : mixed
Parameters
$serialized : mixed
Return values
mixed —

__wakeup()

public __wakeup() : mixed
Return values
mixed —

buildDatastore()

Rebuilds the prefix datastore

public buildDatastore() : mixed

Datastore looks like 'prefixes' -- array of 'prefixsetid' => list of prefixes 'restrictions' -- array of 'prefixid' => list of restricted usergroups, 'channelPrefixset' -- array of 'channelid' => list of prefeix sets,

Return values
mixed —

clearCache()

public static clearCache() : mixed
Return values
mixed —

getContentInstance()

public static getContentInstance(mixed $contenttypeid) : mixed
Parameters
$contenttypeid : mixed
Return values
mixed —

getPrefixData()

Get the prefix datastore. If it does not exist, rebuild it.

public getPrefixData() : mixed

This should be the only way the prefixcache datastore is accessed

Return values
mixed —

instance()

Returns singleton instance of self.

public static instance(mixed $class) : vB_PageCache
Parameters
$class : mixed
Return values
vB_PageCache —
  • Reference to singleton instance of the cache handler

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) : mixed
Parameters
$text : mixed
$type : mixed
$nodeid : mixed
$userid : mixed = null
$insertNotifications : mixed = true
$currentuserid : mixed
Return values
mixed —

prefixExists()

Does the given prefix exist?

public prefixExists(string $prefixid) : bool
Parameters
$prefixid : string
Return values
bool —

__construct()

protected __construct() : mixed
Return values
mixed —

getLibraryClassNameInternal()

protected static getLibraryClassNameInternal(mixed $controller) : mixed
Parameters
$controller : mixed
Return values
mixed —

Search results