5 use Doctrine\DBAL\Query\Expression\CompositeExpression;
7 use Elgg\Traits\Loggable;
51 $callable = $service->resolveCallable($callback);
52 if (!is_callable($callable)) {
53 $description = static::class .
' (QueryBuilder, table_alias)';
54 $this->getLogger()->warning(
"Handler for {$description} is not callable: " . $service->describeCallable($callback));
59 return call_user_func($callable,
$qb, $table_alias);
75 $callable = $service->resolveCallable($callback);
76 if (!is_callable($callable)) {
77 $description = static::class .
' (QueryBuilder, joined_alias, table_alias)';
78 $this->getLogger()->warning(
"Handler for {$description} is not callable: " . $service->describeCallable($callback));
83 return call_user_func($callable,
$qb, $joined_alias, $table_alias);
Interface that allows resolving statements and/or extending query builder.
isCallable($callback)
Check if a clause expression is callable.
prepare(QueryBuilder $qb, $table_alias=null)
Build an expression and/or apply it to an instance of query builder.
callJoin($callback, QueryBuilder $qb, $joined_alias, $table_alias=null)
Call the expression for a join clause.
call($callback, QueryBuilder $qb, $table_alias=null)
Call the expression for the clause.
Database abstraction query builder.
_elgg_services()
Get the global service provider.