Elgg  Version 3.0
Public Member Functions | Public Attributes | List of all members
Elgg\Database\Clauses\OrderByClause Class Reference

Extends QueryBuilder with ORDER BY clauses. More...

Inheritance diagram for Elgg\Database\Clauses\OrderByClause:
Elgg\Database\Clauses\Clause Elgg\Database\Clauses\EntitySortByClause

Public Member Functions

 __construct ($expr=null, $direction=null)
 Constructor. More...
 
 prepare (QueryBuilder $qb, $table_alias=null)
 {Build an expression and/or apply it to an instance of query builder.
Parameters
QueryBuilder$qbQuery builder
string$table_aliasTable alias
Returns
CompositeExpression|null|string
} More...
 

Public Attributes

 $expr
 
 $direction
 

Detailed Description

Extends QueryBuilder with ORDER BY clauses.

Definition at line 12 of file OrderByClause.php.

Constructor & Destructor Documentation

Elgg\Database\Clauses\OrderByClause::__construct (   $expr = null,
  $direction = null 
)

Constructor.

Parameters
CompositeExpression | Closure | string$exprExpression
string$directionDirection

Definition at line 30 of file OrderByClause.php.

Member Function Documentation

Elgg\Database\Clauses\OrderByClause::prepare ( QueryBuilder  $qb,
  $table_alias = null 
)

{Build an expression and/or apply it to an instance of query builder.

Parameters
QueryBuilder$qbQuery builder
string$table_aliasTable alias
Returns
CompositeExpression|null|string
}

Implements Elgg\Database\Clauses\Clause.

Definition at line 38 of file OrderByClause.php.

Member Data Documentation

Elgg\Database\Clauses\OrderByClause::$direction

Definition at line 22 of file OrderByClause.php.

Elgg\Database\Clauses\OrderByClause::$expr

Definition at line 17 of file OrderByClause.php.


The documentation for this class was generated from the following file: