vBulletin 5.6.5 API

vB_Library_Reputation extends vB_Library
in package

vB_Library_Reputation

Tags
access

public

Table of Contents

$instance  : mixed
$nodevotescache  : mixed
$notVoted  : mixed
__serialize()  : mixed
__sleep()  : mixed
__unserialize()  : mixed
__wakeup()  : mixed
cacheNodeVotes()  : mixed
Supplemental cache for node votes
clearCache()  : mixed
fetchNodeVotes()  : array<string|int, int>
Check a list of nodes and see whether the user has voted them
fetchReppower()  : int|mixed|string
Fetch Reputation Power of an user
fetchReputationImageInfo()  : array<string|int, mixed>
Fetch reputation image info for displaying it in a node Ported from vB4's fetch_reputation_image() function
getContentInstance()  : mixed
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.
__construct()  : mixed
getLibraryClassNameInternal()  : mixed

Properties

$instance

protected static mixed $instance = array()

$nodevotescache

protected mixed $nodevotescache = 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

cacheNodeVotes()

Supplemental cache for node votes

public cacheNodeVotes(array<string|int, mixed> $nodeIds, mixed $userid) : mixed
Parameters
$nodeIds : array<string|int, mixed>

A list of Nodes to be checked

$userid : mixed
Return values
mixed

clearCache()

public static clearCache() : mixed
Return values
mixed

fetchNodeVotes()

Check a list of nodes and see whether the user has voted them

public fetchNodeVotes(array<string|int, mixed> $nodeIds, int $userid) : array<string|int, int>
Parameters
$nodeIds : array<string|int, mixed>

A list of Nodes to be checked

$userid : int

User ID to be checked. If not there, currently logged-in user will be checked.

Return values
array<string|int, int>

Node IDs that the user has voted. Keyed by nodeid.

fetchReppower()

Fetch Reputation Power of an user

public fetchReppower(mixed $userinfo) : int|mixed|string
Parameters
$userinfo : mixed
Return values
int|mixed|string

Reputation Power

fetchReputationImageInfo()

Fetch reputation image info for displaying it in a node Ported from vB4's fetch_reputation_image() function

public fetchReputationImageInfo(mixed $userinfo) : array<string|int, mixed>
Parameters
$userinfo : mixed
Return values
array<string|int, mixed>

Contains 3 items:

  1. type - image type. Possible values: balance, neg, highneg, pos, highpos, off
  2. level - Reputation level's phrase name
  3. bars - Number of image bars to be displayed. Maximum 10.

getContentInstance()

public static getContentInstance(mixed $contenttypeid) : mixed
Parameters
$contenttypeid : mixed
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

__construct()

protected __construct() : mixed
Return values
mixed

getLibraryClassNameInternal()

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

Search results