vBulletin v6.0.4

vB_Library_Nodevote extends vB_Library
in package

vB_Library_Nodevote

Tags
access

public

Table of Contents

Constants

DATASTOREKEY_METADATA  = 'vBNodevoteMetadata'
DELIMITER  = ':'

Methods

__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
addVotegroup()  : mixed
addVotetype()  : mixed
afterUserDelete()  : mixed
afterUserMerge()  : mixed
clearCache()  : mixed
digestVoteUnvoteRequest()  : mixed
getContentInstance()  : mixed
getNodevoteCounts()  : mixed
getVoteMetaData()  : mixed
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.
reloadNodevoteMetaDataFromDB()  : mixed
removeVotegroup()  : mixed
removeVotetype()  : mixed
unvoteNode()  : mixed
updateVotetypeLabel()  : mixed
voteNode()  : mixed

Constants

DATASTOREKEY_METADATA

public mixed DATASTOREKEY_METADATA = 'vBNodevoteMetadata'

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>

addVotegroup()

public addVotegroup(mixed $label[, mixed $onchange = 'radio' ]) : mixed
Parameters
$label : mixed
$onchange : mixed = 'radio'

addVotetype()

public addVotetype(string $label[, string|null $votegrouplabel = null ]) : mixed
Parameters
$label : string
$votegrouplabel : string|null = null

afterUserDelete()

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

afterUserMerge()

public afterUserMerge(mixed $sourceuserid, mixed $destuserid) : mixed
Parameters
$sourceuserid : mixed
$destuserid : mixed

clearCache()

public static clearCache() : mixed

digestVoteUnvoteRequest()

public digestVoteUnvoteRequest(mixed $nodeidOrVoteid[, mixed $votetypeid = null ]) : mixed
Parameters
$nodeidOrVoteid : mixed
$votetypeid : mixed = null

getContentInstance()

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

getNodevoteCounts()

public getNodevoteCounts(mixed $nodeids) : mixed
Parameters
$nodeids : mixed

getVoteMetaData()

public getVoteMetaData([mixed $what = '' ]) : mixed
Parameters
$what : mixed = ''

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.

reloadNodevoteMetaDataFromDB()

public reloadNodevoteMetaDataFromDB() : mixed

removeVotegroup()

public removeVotegroup(string $votegroupLabel) : mixed
Parameters
$votegroupLabel : string

removeVotetype()

public removeVotetype(string $votetypeLabel[, string|null $votegroupLabel = null ]) : mixed
Parameters
$votetypeLabel : string
$votegroupLabel : string|null = null

unvoteNode()

public unvoteNode(mixed $nodeid, mixed $votetypeidorkey) : mixed
Parameters
$nodeid : mixed
$votetypeidorkey : mixed

updateVotetypeLabel()

public updateVotetypeLabel(int $votetypeid, string $label) : mixed
Parameters
$votetypeid : int
$label : string

voteNode()

public voteNode(mixed $nodeid, mixed $votetypeidorkey) : mixed
Parameters
$nodeid : mixed
$votetypeidorkey : mixed

        
On this page

Search results