66         $alias = 
function (
$column) use ($table_alias) {
 
   67             return $table_alias ? 
"{$table_alias}.{$column}" : 
$column;
 
   71         $wheres[] = parent::prepare(
$qb, $table_alias);
 
   75         $wheres[] = $types->prepare(
$qb, $table_alias);
 
   78         $wheres[] = 
$qb->compare($alias(
'annotation_id'), 
'=', $this->annotation_ids, 
ELGG_VALUE_ID);
 
   81         $wheres[] = 
$qb->compare($alias(
'subject_guid'), 
'=', $this->subject_guids, 
ELGG_VALUE_GUID);
 
   82         $wheres[] = 
$qb->compare($alias(
'object_guid'), 
'=', $this->object_guids, 
ELGG_VALUE_GUID);
 
   83         $wheres[] = 
$qb->compare($alias(
'target_guid'), 
'=', $this->target_guids, 
ELGG_VALUE_GUID);
 
   86         return $qb->merge($wheres);
 
Builds queries for matching river items against their properties.
prepare(QueryBuilder $qb, $table_alias=null)
{{Build an expression and/or apply it to an instance of query builder.Query builder Table aliasCompos...
Builds clauses for filtering entities by their type and subtype.
Builds a clause from closure or composite expression.
Database abstraction query builder.
const ELGG_VALUE_TIMESTAMP