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
$contenttype
public
string
$contenttype
$data
public
array<string|int, mixed>
$data
$expires
public
int
$expires
$hash
public
string
$hash
$host
public
string
$host
$lastfetch
public
int
$lastfetch
$statuscode
public
int
$statuscode
= 0
$url
public
string
$url
$urlid
public
int|null
$urlid
= null
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>
__wakeup()
public
__wakeup() : void
createFromArray()
public
static createFromArray(array<string|int, mixed> $dbrecord) : static
Parameters
- $dbrecord : array<string|int, mixed>
Return values
statichashNormalizedUrl()
public
static hashNormalizedUrl(string $url) : string
Parameters
- $url : string
Return values
stringjsonDecode()
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_EntityjsonSerialize()
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
stringtoArray()
public
toArray() : array<string|int, mixed>