vBulletin v6.1.0

vB_Options_Option
in package
uses vB_Trait_NoSerialize

Table of Contents

Methods

__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
createFromArray()  : self
forceType()  : mixed
Forcing a value to be corect for the setting type.
forceTypeStoredValue()  : mixed
Does a forced type but avoids repeating any non repeatable coercions
validate()  : bool|string

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>

createFromArray()

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

forceType()

Forcing a value to be corect for the setting type.

public forceType(mixed $value) : mixed

Returns a value guarenteed to be of the "type" specified by the settings definition normalizing input and providing defaults for garbage input

Parameters
$value : mixed

forceTypeStoredValue()

Does a forced type but avoids repeating any non repeatable coercions

public forceTypeStoredValue(mixed $value) : mixed

Some of the force operations -- primirily string to id lookups -- are not repeatable so if we want run type coercion on data already coerced we need to provide alternative checks for certain types. It's not possible to automatically determine which state value is in.

Parameters
$value : mixed

validate()

public validate(mixed $value, bool $israw) : bool|string
Parameters
$value : mixed
$israw : bool
Return values
bool|string

        
On this page

Search results