103 $alias =
function (
$column) use ($table_alias) {
104 return $table_alias ?
"{$table_alias}.{$column}" :
$column;
108 $wheres[] = parent::prepare($qb, $table_alias);
115 $wheres[] =
$access->prepare($qb, $table_alias);
119 $wheres[] =
$type->prepare($qb, $table_alias);
131 return $qb->
merge($wheres);
141 $where =
new static();
142 $where->guids = $options->guids;
143 $where->owner_guids = $options->owner_guids;
144 $where->container_guids = $options->container_guids;
145 $where->type_subtype_pairs = $options->type_subtype_pairs;
146 $where->created_after = $options->created_after;
147 $where->created_before = $options->created_before;
148 $where->updated_after = $options->updated_after;
149 $where->updated_before = $options->updated_before;
150 $where->last_action_after = $options->last_action_after;
151 $where->last_action_before = $options->last_action_before;
152 $where->access_ids = $options->access_ids;
Database abstraction query builder.
prepare(QueryBuilder $qb, $table_alias= '')
{}
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options
Builds queries for filtering entities by their properties in the entities table.
compare(string $x, string $comparison, $y=null, string $type=null, bool $case_sensitive=null)
Build value comparison clause.
static factory(QueryOptions $options)
Build new clause from options.
const ELGG_VALUE_TIMESTAMP
Builds clauses for filtering entities by their type and subtype.
Builds a clause from closure or composite expression.
merge($parts=null, $boolean= 'AND')
Merges multiple composite expressions with a boolean.
between(string $x, $lower=null, $upper=null, string $type=null)
Build a between clause.
Builds queries to restrict access.