vBulletin 5.6.5 API

vB_Library_Admin extends vB_Library
in package

vB_Library_Functions

Tags
access

public

Table of Contents

$modlogactions  : mixed
$modlogtypes  : mixed
$instance  : mixed
__serialize()  : mixed
__sleep()  : mixed
__unserialize()  : mixed
__wakeup()  : mixed
buildActionCell()  : mixed
buildCheckboxCell()  : mixed
buildDisplayCell()  : mixed
buildElementCell()  : mixed
buildTextInputCell()  : mixed
clearCache()  : mixed
constructDepthMark()  : mixed
getContentInstance()  : mixed
GetModlogAction()  : string
Fetches the string associated with a moderator log action integer value
GetModlogType()  : int
Fetches the integer value associated with a moderator log action string
instance()  : vB_PageCache
Returns singleton instance of self.
logModeratorAction()  : mixed
Save moderator actions
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

$modlogactions

public static mixed $modlogactions = array()

$modlogtypes

public static mixed $modlogtypes = array( // Legacy Actions // 'closed_thread' => 1, 'opened_thread' => 2, 'thread_moved_to_x' => 3, 'thread_moved_with_redirect_to_a' => 4, 'thread_copied_to_x' => 5, 'thread_edited_visible_x_open_y_sticky_z' => 6, 'thread_merged_with_x' => 7, 'thread_split_to_x' => 8, 'unstuck_thread' => 9, 'stuck_thread' => 10, 'attachment_removed' => 11, 'attachment_uploaded' => 12, 'poll_edited' => 13, 'thread_softdeleted' => 14, 'thread_removed' => 15, 'thread_undeleted' => 16, 'post_x_by_y_softdeleted' => 17, 'post_x_by_y_removed' => 18, 'post_y_by_x_undeleted' => 19, 'post_x_edited' => 20, 'approved_thread' => 21, 'unapproved_thread' => 22, 'thread_merged_from_multiple_threads' => 23, 'unapproved_post' => 24, 'approved_post' => 25, 'post_merged_from_multiple_posts' => 26, 'approved_attachment' => 27, 'unapproved_attachment' => 28, 'thread_title_x_changed' => 29, 'thread_redirect_removed' => 30, 'posts_copied_to_x' => 31, 'album_x_by_y_edited' => 32, 'album_x_by_y_deleted' => 33, 'picture_x_in_y_by_z_edited' => 34, 'picture_x_in_y_by_z_deleted' => 35, 'picture_x_in_y_by_z_approved' => 46, 'social_group_x_edited' => 36, 'social_group_x_deleted' => 37, 'social_group_x_members_managed' => 38, 'social_group_picture_x_in_y_removed' => 39, 'pc_by_x_on_y_edited' => 40, 'pc_by_x_on_y_soft_deleted' => 41, 'pc_by_x_on_y_removed' => 42, 'pc_by_x_on_y_undeleted' => 43, 'pc_by_x_on_y_unapproved' => 44, 'pc_by_x_on_y_approved' => 45, 'gm_by_x_in_y_for_z_edited' => 47, 'gm_by_x_in_y_for_z_soft_deleted' => 48, 'gm_by_x_in_y_for_z_removed' => 49, 'gm_by_x_in_y_for_z_undeleted' => 50, 'gm_by_x_in_y_for_z_unapproved' => 51, 'gm_by_x_in_y_for_z_approved' => 52, 'vm_by_x_for_y_edited' => 53, 'vm_by_x_for_y_soft_deleted' => 54, 'vm_by_x_for_y_removed' => 55, 'vm_by_x_for_y_undeleted' => 56, 'vm_by_x_for_y_unapproved' => 57, 'vm_by_x_for_y_approved' => 58, 'discussion_by_x_for_y_edited' => 59, 'discussion_by_x_for_y_soft_deleted' => 60, 'discussion_by_x_for_y_removed' => 61, 'discussion_by_x_for_y_undeleted' => 62, 'discussion_by_x_for_y_unapproved' => 63, 'discussion_by_x_for_y_approved' => 64, // vB5 Actions // 'node_opened_by_x' => 65, 'node_closed_by_x' => 66, 'node_copied_by_x' => 67, 'node_moved_by_x' => 68, 'node_featured_by_x' => 69, 'node_unfeatured_by_x' => 70, 'node_approved_by_x' => 71, 'node_unapproved_by_x' => 72, 'node_soft_deleted_by_x' => 73, 'node_hard_deleted_by_x' => 74, 'node_restored_by_x' => 75, 'node_edited_by_x' => 76, 'node_stuck_by_x' => 77, 'node_unstuck_by_x' => 78, 'node_merged_by_x' => 79, )

$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

buildActionCell()

public static buildActionCell(mixed $name, mixed $options[, mixed $jsfunction = '' ][, mixed $button = 'Go' ][, mixed $onclick = false ][, mixed $onchange = false ]) : mixed
Parameters
$name : mixed
$options : mixed
$jsfunction : mixed = ''
$button : mixed = 'Go'
$onclick : mixed = false
$onchange : mixed = false
Return values
mixed

buildCheckboxCell()

public static buildCheckboxCell(mixed $name[, mixed $value = 1 ][, mixed $id = 'id' ][, mixed $checked = false ][, mixed $disabled = false ][, mixed $onclick = false ][, mixed $vinput = true ]) : mixed
Parameters
$name : mixed
$value : mixed = 1
$id : mixed = 'id'
$checked : mixed = false
$disabled : mixed = false
$onclick : mixed = false
$vinput : mixed = true
Return values
mixed

buildDisplayCell()

public static buildDisplayCell(mixed $text[, mixed $bold = false ][, mixed $smallfont = false ][, mixed $istrike = false ]) : mixed
Parameters
$text : mixed
$bold : mixed = false
$smallfont : mixed = false
$istrike : mixed = false
Return values
mixed

buildElementCell()

public static buildElementCell(mixed $name, mixed $text, mixed $depth[, mixed $bold = false ][, mixed $link = '' ][, mixed $do = '' ][, mixed $session = '' ][, mixed $subtext = '' ][, mixed $subtitle = '' ]) : mixed
Parameters
$name : mixed
$text : mixed
$depth : mixed
$bold : mixed = false
$link : mixed = ''
$do : mixed = ''
$session : mixed = ''
$subtext : mixed = ''
$subtitle : mixed = ''
Return values
mixed

buildTextInputCell()

public static buildTextInputCell(mixed $name[, mixed $value = '' ][, mixed $size = 5 ][, mixed $title = '' ][, mixed $taborder = 1 ]) : mixed
Parameters
$name : mixed
$value : mixed = ''
$size : mixed = 5
$title : mixed = ''
$taborder : mixed = 1
Return values
mixed

clearCache()

public static clearCache() : mixed
Return values
mixed

constructDepthMark()

public static constructDepthMark(mixed $name, mixed $options[, mixed $jsfunction = '' ][, mixed $button = 'Go' ][, mixed $onclick = false ][, mixed $onchange = false ]) : mixed
Parameters
$name : mixed
$options : mixed
$jsfunction : mixed = ''
$button : mixed = 'Go'
$onclick : mixed = false
$onchange : mixed = false
Return values
mixed

getContentInstance()

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

GetModlogAction()

Fetches the string associated with a moderator log action integer value

public static GetModlogAction(mixed $logtype) : string
Parameters
$logtype : mixed
Return values
string

GetModlogType()

Fetches the integer value associated with a moderator log action string

public static GetModlogType(mixed $logtext) : int
Parameters
$logtext : mixed
Return values
int

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

logModeratorAction()

Save moderator actions

public static logModeratorAction(mixed $nodeinfo, mixed $logtype[, mixed $action = array() ]) : mixed
Parameters
$nodeinfo : mixed
$logtype : mixed
$action : mixed = array()
Return values
mixed

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