Skip to content

Box QueryLimitOrOrderBy

Travis edited this page Mar 13, 2014 · 8 revisions

Box\QueryLimitOrOrderBy

Query

  • Class name: QueryLimitOrOrderBy
  • Namespace: Box
  • Parent class: Box\QueryBase

Constants

ASC

const ASC = 'ASC'

DESC

const DESC = 'DESC'

Properties

$_child

protected \Box\QueryBase $_child
  • Visibility: protected

$_token

protected \Box\TokenBase $_token
  • Visibility: protected

$_root

protected \Box\Query $_root
  • Visibility: protected

Methods

\Box\QueryLimitOrOrderBy::limit()

\Box\QueryOffset Box\QueryLimitOrOrderBy::\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\QueryLimitOrOrderBy::\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\QueryLimitOrOrderBy::\Box\QueryBase::_getToken()()

Get the token this query element translates to.

  • Visibility: protected

\Box\QueryBase::getToken()

\Box\TokenRoot Box\QueryLimitOrOrderBy::\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