vBulletin v6.1.0

vB_dB_QueryState
in package
uses vB_Trait_NoSerialize

Table of Contents

Methods

__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
addField()  : void
addFilter()  : void
Add a filter.
addJoin()  : mixed
Add a join to the query. Allows building out the extra tables needed to support additional fields or filters without including them unnecesarily.
getFieldString()  : string
getFilterString()  : string
getJoinString()  : string
hasField()  : mixed
hasJoin()  : mixed

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>

addField()

public addField(string $key, string $field) : void
Parameters
$key : string
$field : string

addFilter()

Add a filter.

public addFilter(string $filter) : void

Each filter is an "AND" value. If "OR" logic is needed make it internal to the filter.

Parameters
$filter : string

addJoin()

Add a join to the query. Allows building out the extra tables needed to support additional fields or filters without including them unnecesarily.

public addJoin(string $key, string $join) : mixed
Parameters
$key : string

-- keyvalue for the join. Allows a table to be specified multiple times for multiple fields/filters without adding the join multiple times. The join line should be identical in each case (or at least equivilant). Which join for a given key used is undefined in this interface.

$join : string

-- Then entire join line for a table

getFieldString()

public getFieldString() : string
Return values
string

getFilterString()

public getFilterString() : string
Return values
string

getJoinString()

public getJoinString() : string
Return values
string

hasField()

public hasField(mixed $key) : mixed
Parameters
$key : mixed

hasJoin()

public hasJoin(mixed $key) : mixed
Parameters
$key : mixed

        
On this page

Search results