vB_dB_ArrayResult
extends ArrayIterator
in package
implements
Iterator
Uses
vB_Trait_NoSerialize
This class in intended to wrap an array for situations where a resultset can be constructed without hitting the database.
This is likely a result of a method query hitting some case where a default needs to be returned (and sending a query to the db to produce a known result is kind of silly).
it should match the vB_dB_Result interface as the two should be interchangable.
Interfaces, Classes and Traits
- Iterator
Table of Contents
- $db : mixed
- $recordset : mixed
- __construct() : mixed
- standard constructor
- __serialize() : mixed
- __sleep() : mixed
- __unserialize() : mixed
- __wakeup() : mixed
- db() : mixed
- free() : mixed
Properties
$db
private
mixed
$db
$recordset
private
mixed
$recordset
= array()
Methods
__construct()
standard constructor
public
__construct(vB_Database $db, array<string|int, mixed> $recordset) : mixed
Parameters
- $db : vB_Database
-
-- the standard vbulletin db object (not used but the result interface requires us to return it)
- $recordset : array<string|int, mixed>
-
-- array of arrays mimicing a db resultset
Return values
mixed —__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 —db()
public
db() : mixed
Return values
mixed —free()
public
free() : mixed