30 $alias =
function (
$column) use ($table_alias) {
31 return $table_alias ?
"{$table_alias}.{$column}" :
$column;
35 $wheres[] = parent::prepare(
$qb, $table_alias);
37 foreach ((array) $this->names as
$name) {
38 $wheres[] =
$qb->compare($alias(
$name), $this->comparison, $this->values, $this->value_type);
41 return $qb->merge($wheres);
60 foreach ($array_attributes as $array_key) {
66 $singular_attributes = [
70 foreach ($singular_attributes as $array_key) {
if(! $user||! $user->canDelete()) $name
$attributes
Elgg AJAX loader.
Builds queries for matching entities by their attributes.
static factory(array $attributes)
Build a new AttributeWhereClause.
prepare(QueryBuilder $qb, $table_alias=null)
{{Build an expression and/or apply it to an instance of query builder.Query builder Table aliasCompos...
Builds a clause from closure or composite expression.
Database abstraction query builder.