interface QueryInterface (View source)

Interface that defines minimum functionality of a Bolt Query class.

The goal of a query is to store select and filter parameters that can be used to create a relevant SQL expression.

Methods

build()

Builds the query and returns an instance of QueryBuilder.

QueryBuilder
getQueryBuilder()

Returns the current instance of QueryBuilder.

string
__toString()

No description

int
getIndex()

No description

void
incrementIndex()

No description

string
getContentType()

Returns the content type this query is executing on.

getParameter(string $key)

Returns the value of a parameter by key name.

void
setParameter(string $key, $value)

Sets the value of a parameter by key name.

array
getCoreFields()

No description

array
getTaxonomyFields()

No description

getConfig()

No description

Details

build()

Builds the query and returns an instance of QueryBuilder.

QueryBuilder getQueryBuilder()

Returns the current instance of QueryBuilder.

Return Value

QueryBuilder

string __toString()

Return Value

string

int getIndex()

Return Value

int

void incrementIndex()

Return Value

void

string getContentType()

Returns the content type this query is executing on.

Return Value

string

getParameter(string $key)

Returns the value of a parameter by key name.

Parameters

string $key

void setParameter(string $key, $value)

Sets the value of a parameter by key name.

Parameters

string $key
$value

Return Value

void

array getCoreFields()

Return Value

array

array getTaxonomyFields()

Return Value

array

Config getConfig()

Return Value

Config