56 $alias =
function (
$column) use ($table_alias) {
57 return $table_alias ?
"{$table_alias}.{$column}" :
$column;
62 $wheres[] = parent::prepare(
$qb, $table_alias);
66 $wheres[] =
$qb->compare($alias(
'guid_one'),
'=', $this->subject_guids,
ELGG_VALUE_GUID);
67 $wheres[] =
$qb->compare($alias(
'guid_two'),
'=', $this->object_guids,
ELGG_VALUE_GUID);
68 $wheres[] =
$qb->between($alias(
'time_created'), $this->created_after, $this->created_before,
ELGG_VALUE_TIMESTAMP);
70 return $qb->merge($wheres);
Builds clauses for filtering entities by their properties in entity_relationships table.
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.
const ELGG_VALUE_TIMESTAMP