vBulletin v6.1.0

vB_Entity_CachedUrl extends vB_Entity
in package
uses vB_Trait_NoSerialize

Table of Contents

Properties

$contenttype  : string
$data  : array<string|int, mixed>
$expires  : int
$hash  : string
$host  : string
$lastfetch  : int
$statuscode  : int
$url  : string
$urlid  : int|null

Methods

__construct()  : mixed
__get()  : mixed
__serialize()  : array<string|int, mixed>
__set()  : void
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
createFromArray()  : static
hashNormalizedUrl()  : string
jsonDecode()  : vB_Entity
Accept a json string and converts it back to an object instance. The string is intended to be an output from a json_encode($originalEntity->jsonSerialize(), true) call.
jsonSerialize()  : mixed
normalizeUrl()  : string
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(string $url, array<string|int, mixed> $data, int $expires, int $lastfetch, string $contenttype[, int $statuscode = 0 ][, int|null $urlid = null ]) : mixed
Parameters
$url : string
$data : array<string|int, mixed>
$expires : int
$lastfetch : int
$contenttype : string
$statuscode : int = 0
$urlid : int|null = null

__get()

public final __get(string $name) : mixed
Parameters
$name : string

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__set()

public final __set(string $name, mixed $value) : void
Parameters
$name : string
$value : 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>

createFromArray()

public static createFromArray(array<string|int, mixed> $dbrecord) : static
Parameters
$dbrecord : array<string|int, mixed>
Return values
static

hashNormalizedUrl()

public static hashNormalizedUrl(string $url) : string
Parameters
$url : string
Return values
string

jsonDecode()

Accept a json string and converts it back to an object instance. The string is intended to be an output from a json_encode($originalEntity->jsonSerialize(), true) call.

public final static jsonDecode(string $json) : vB_Entity
Parameters
$json : string
Return values
vB_Entity

jsonSerialize()

public final jsonSerialize() : mixed

normalizeUrl()

public static normalizeUrl(string $url[, array<string|int, mixed> &$urlarr = [] ]) : string
Parameters
$url : string
$urlarr : array<string|int, mixed> = []
Return values
string

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results