vBulletin v6.1.0

vB_Library_UrlCache extends vB_Library
in package
implements vB_Interface_UrlCache

vB_Library

Table of Contents

Interfaces

vB_Interface_UrlCache

Constants

STATUS_URL_FETCH_ERROR  = 1
STATUS_URL_FETCH_MISSINGSTATUS  = 0

Methods

__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
clearCache()  : mixed
fetchUrl()  : vB_Entity_CachedUrl|null
getContentInstance()  : 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.
prefetchCachedUrls()  : void

Constants

STATUS_URL_FETCH_ERROR

public mixed STATUS_URL_FETCH_ERROR = 1

STATUS_URL_FETCH_MISSINGSTATUS

public mixed STATUS_URL_FETCH_MISSINGSTATUS = 0

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>

clearCache()

public static clearCache() : mixed

fetchUrl()

public fetchUrl(string $url[, bool $cachedOnly = false ][, bool &$wasUrlLoaded = false ][, int|null $cutoff = null ]) : vB_Entity_CachedUrl|null
Parameters
$url : string
$cachedOnly : bool = false
$wasUrlLoaded : bool = false
$cutoff : int|null = null
Return values
vB_Entity_CachedUrl|null

getContentInstance()

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

use the functions from the notification library directly.

Parameters
$text : mixed
$type : mixed
$nodeid : mixed
$userid : mixed = null
$insertNotifications : mixed = true
$currentuserid : mixed = 0

prefetchCachedUrls()

public prefetchCachedUrls(array<string|int, mixed>|string $urls) : void
Parameters
$urls : array<string|int, mixed>|string

        
On this page

Search results