vB_Library_Usergroup
extends vB_Library
in package
vB_Library_Usergroup
Tags
Table of Contents
- $instance : mixed
- __serialize() : mixed
- __sleep() : mixed
- __unserialize() : mixed
- __wakeup() : mixed
- buildDatastore() : mixed
- Rebuilds the usergroup datastore cache from the database
- clearCache() : mixed
- fetchUsergroupByID() : mixed
- fetchUsergroupList() : array<string|int, mixed>
- Returns a list of all user groups.
- getContentInstance() : mixed
- getMemberlistGroups() : mixed
- getMultipleGroupIds() : array<string|int, mixed>
- Returns the usergroupids for multiple specified SYSGROUPID constants
- getSuperModGroups() : mixed
- Returns all of the user groups with ismoderator set
- 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
- getGroupsWithPerm() : 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 usergroup datastore cache from the database
public
buildDatastore() : mixed
Return values
mixed —clearCache()
public
static clearCache() : mixed
Return values
mixed —fetchUsergroupByID()
public
fetchUsergroupByID(mixed $usergroupid) : mixed
Parameters
- $usergroupid : mixed
Return values
mixed —fetchUsergroupList()
Returns a list of all user groups.
public
fetchUsergroupList() : array<string|int, mixed>
Return values
array<string|int, mixed> —getContentInstance()
public
static getContentInstance(mixed $contenttypeid) : mixed
Parameters
- $contenttypeid : mixed
Return values
mixed —getMemberlistGroups()
public
getMemberlistGroups() : mixed
Return values
mixed —getMultipleGroupIds()
Returns the usergroupids for multiple specified SYSGROUPID constants
public
getMultipleGroupIds(array<string|int, mixed> $groups) : array<string|int, mixed>
Parameters
- $groups : array<string|int, mixed>
-
-- int, the systemIDs to look up the db ids from
Return values
array<string|int, mixed> —-- usergroup ids -- NOTE: The usergroups in the return array are in the same order as in the input array. Some callers depend on this behavior.
getSuperModGroups()
Returns all of the user groups with ismoderator set
public
getSuperModGroups() : mixed
@return array usergroupids for each usergroup
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 —getGroupsWithPerm()
private
getGroupsWithPerm(mixed $permgroup, mixed $permname) : mixed
Parameters
- $permgroup : mixed
- $permname : mixed