|
Elgg
Version master
|
Builds queries for matching entities by their attributes. More...
Public Member Functions | |||||||
| prepare (QueryBuilder $qb, $table_alias=null) | |||||||
{{Build an expression and/or apply it to an instance of query builder.
| |||||||
Public Member Functions inherited from Elgg\Database\Clauses\WhereClause | |||||||
| __construct ($expr=null) | |||||||
| Constructor. More... | |||||||
Static Public Member Functions | |
| static | factory (array $attributes) |
| Build a new AttributeWhereClause. More... | |
Public Attributes | |
| $names | |
| $values | |
| string | $comparison = '=' |
| string | $value_type = ELGG_VALUE_STRING |
Public Attributes inherited from Elgg\Database\Clauses\WhereClause | |
| $expr | |
Additional Inherited Members | |
Protected Member Functions inherited from Elgg\Database\Clauses\Clause | |
| 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... | |
Builds queries for matching entities by their attributes.
Definition at line 10 of file AttributeWhereClause.php.
|
static |
Build a new AttributeWhereClause.
| array | $attributes | parameters for clause |
Definition at line 53 of file AttributeWhereClause.php.
| Elgg\Database\Clauses\AttributeWhereClause::prepare | ( | QueryBuilder | $qb, |
$table_alias = null |
|||
| ) |
{{Build an expression and/or apply it to an instance of query builder.
| QueryBuilder | $qb | Query builder |
| string | $table_alias | Table alias |
Reimplemented from Elgg\Database\Clauses\WhereClause.
Definition at line 29 of file AttributeWhereClause.php.
| string Elgg\Database\Clauses\AttributeWhereClause::$comparison = '=' |
Definition at line 22 of file AttributeWhereClause.php.
| Elgg\Database\Clauses\AttributeWhereClause::$names |
Definition at line 15 of file AttributeWhereClause.php.
| string Elgg\Database\Clauses\AttributeWhereClause::$value_type = ELGG_VALUE_STRING |
Definition at line 24 of file AttributeWhereClause.php.
| Elgg\Database\Clauses\AttributeWhereClause::$values |
Definition at line 20 of file AttributeWhereClause.php.