Skip to content
Travis edited this page Mar 13, 2014 · 8 revisions

Box\QueryOperation

Query

Constants

ASC

const ASC = 'ASC'

DESC

const DESC = 'DESC'

Properties

$_aggregate

private mixed $_aggregate
  • Visibility: private

$_child

protected \Box\QueryBase $_child
  • Visibility: protected

$_token

protected \Box\TokenBase $_token
  • Visibility: protected

$_root

protected \Box\Query $_root
  • Visibility: protected

Methods

\Box\QueryOperation::__construct()

mixed Box\QueryOperation::\Box\QueryOperation::__construct()()

Use ::create if you can find it. Otherwise this.

  • Visibility: public

\Box\QueryOperation::andSub()

\Box\QueryOperation Box\QueryOperation::\Box\QueryOperation::andSub()(\Box\QueryBase $sub)
  • Visibility: public

Arguments

\Box\QueryOperation::orSub()

\Box\QueryOperation Box\QueryOperation::\Box\QueryOperation::orSub()(\Box\QueryBase $sub)
  • Visibility: public

Arguments

\Box\QueryOperation::and_()

\Box\QueryCondition Box\QueryOperation::\Box\QueryOperation::and_()()
  • Visibility: public

\Box\QueryOperation::or_()

\Box\QueryCondition Box\QueryOperation::\Box\QueryOperation::or_()()
  • Visibility: public

\Box\QueryLimitOrOrderBy::limit()

\Box\QueryOffset Box\QueryOperation::\Box\QueryLimitOrOrderBy::limit()(integer $limit)

Limit the result set.

  • Visibility: public

Arguments

  • $limit integer - <p>The maximum number of objects you want.</p>

\Box\QueryLimitOrOrderBy::orderBy()

\Box\QueryLimitOrOrderBy Box\QueryOperation::\Box\QueryLimitOrOrderBy::orderBy()(string $property, string $direction)

Order the result set.

  • Visibility: public

Arguments

  • $property string - <p>The property to order by.</p>
  • $direction string - <p>The direction to order. Use the class constants ::ASC and ::DESC.</p>

\Box\QueryBase::_getToken()

\Box\TokenBase Box\QueryOperation::\Box\QueryBase::_getToken()()

Get the token this query element translates to.

  • Visibility: protected

\Box\QueryBase::getToken()

\Box\TokenRoot Box\QueryOperation::\Box\QueryBase::getToken()()

Get the token representing the root of the query this query part belongs to, if any.

  • Visibility: public

Clone this wiki locally