Elgg
Version master
|
Interface that allows resolving statements and/or extending query builder. More...
Public Member Functions | |
prepare (QueryBuilder $qb, $table_alias=null) | |
Build an expression and/or apply it to an instance of query builder. More... | |
Protected Member Functions | |
isCallable ($callback) | |
Check if a clause expression is callable. More... | |
call ($callback, QueryBuilder $qb, $table_alias=null) | |
Call the expression for the clause. More... | |
callJoin ($callback, QueryBuilder $qb, $joined_alias, $table_alias=null) | |
Call the expression for a join clause. More... | |
Interface that allows resolving statements and/or extending query builder.
Definition at line 14 of file Clause.php.
|
protected |
Call the expression for the clause.
mixed | $callback | the clause callable expression |
QueryBuilder | $qb | the current query builder |
string | $table_alias | the main table alias |
Definition at line 48 of file Clause.php.
|
protected |
Call the expression for a join clause.
mixed | $callback | the clause callable expression |
QueryBuilder | $qb | the current query builder |
string | $joined_alias | the joined table alias |
string | $table_alias | the main table alias |
Definition at line 72 of file Clause.php.
|
protected |
Check if a clause expression is callable.
mixed | $callback | the clause callable expression |
Definition at line 35 of file Clause.php.
|
abstract |
Build an expression and/or apply it to an instance of query builder.
QueryBuilder | $qb | Query builder |
string | $table_alias | Table alias |
Reimplemented in Elgg\Database\Clauses\WhereClause, Elgg\Database\Clauses\TypeSubtypeWhereClause, Elgg\Database\Clauses\SelectClause, Elgg\Database\Clauses\RiverWhereClause, Elgg\Database\Clauses\RelationshipWhereClause, Elgg\Database\Clauses\OrderByClause, Elgg\Database\Clauses\MetadataWhereClause, Elgg\Database\Clauses\JoinClause, Elgg\Database\Clauses\HavingClause, Elgg\Database\Clauses\GroupByClause, Elgg\Database\Clauses\EntitySortByClause, Elgg\Database\Clauses\ComparisonClause, Elgg\Database\Clauses\AttributeWhereClause, Elgg\Database\Clauses\AnnotationWhereClause, Elgg\Database\Clauses\AccessWhereClause, and Elgg\Database\Clauses\EntityWhereClause.