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);
call($callback, QueryBuilder $qb, $table_alias=null)
Call the expression for the clause.
Interface that allows resolving statements and/or extending query builder.
Database abstraction query builder.
prepare(QueryBuilder $qb, $table_alias=null)
Build an expression and/or apply it to an instance of query builder.
trait Loggable
Enables adding a logger.
getLogger()
Returns logger.
isCallable($callback)
Check if a clause expression is callable.
callJoin($callback, QueryBuilder $qb, $joined_alias, $table_alias=null)
Call the expression for a join clause.
_elgg_services()
Get the global service provider.