buildInlineFilterCondition.php
Table of Contents
Functions
- buildInlineFilterCondition() : string
- Build inline filter condition for array expansion.
Functions
buildInlineFilterCondition()
Build inline filter condition for array expansion.
buildInlineFilterCondition(string $field, string $operator, mixed $value, array<string|int, mixed>|null &$binds[, mixed $alt = null ]) : string
Generates an AQL condition for use within array inline filtering syntax (CURRENT.field). Handles null values specially (no binding) and binds other values for security.
An optional $alt chain wraps the compared field (left, CURRENT.<field>)
and/or the bound value (right) — same alt:{key,val} / val:true mirror
vocabulary as the flat filters — so case-insensitive matches work inside the
array expansion (LOWER(CURRENT.email) == LOWER(@v)).
Parameters
- $field : string
-
The field name (e.g., "email")
- $operator : string
-
The comparison operator (e.g., "eq", "ne", "like")
- $value : mixed
-
The value to compare against
- $binds : array<string|int, mixed>|null
-
Bind variables array
- $alt : mixed = null
-
The
alttransformation (string/list = field only, object{key,val}= both sides); null for none.
Tags
Return values
string —The inline filter condition (e.g., "CURRENT.email != null")