Oihana PHP Arango

HasFilterConditions

This trait defines the conditions filter helpers. We can combine filters with logical operators.

Tags
example
?filter=[ condition1 , condition2 ] // (condition1 && condition2)
?filter=[ "and" , condition1 , condition2 ] // (condition1 && condition2)
?filter=[ "or"  , condition1 , condition2 ] // (condition1 || condition2)
?filter=[ "and" , ["or",condition1,condition2],["or",condition3,condition4]] // ( (condition1 || condition2) && (condition3 || condition4) )
?filter=[ "not" , condition] // !(condition)

Table of Contents

Methods

prepareFilterConditions()  : string|null
Prepares the filter clause with a collection of conditions.

Methods

prepareFilterConditions()

Prepares the filter clause with a collection of conditions.

public prepareFilterConditions([array<string|int, mixed> $init = [] ][, array<string|int, mixed>|null &$binds = null ][, string $docRef = AQL::DOC ]) : string|null
Parameters
$init : array<string|int, mixed> = []
$binds : array<string|int, mixed>|null = null
$docRef : string = AQL::DOC
Tags
throws
BindException
ConstantException
ContainerExceptionInterface
NotFoundExceptionInterface
ReflectionException
UnsupportedOperationException
Return values
string|null
On this page

Search results