Oihana PHP Arango

HasFilterBoolean

This trait defines the date filter helpers.

Configure

Defines the 'filters' property in the model (Documents) definition.

Models::PLACES => fn( ContainerInterface $container ) => new Documents
(
    $container ,
    Collections::PLACES ,
    [
        ...
        AQL::FILTERS =>
        [
             Prop::ACTIVE => FilterType::BOOL ,
        ]
        ...
Tags
example
?filter={ "key":"flag" , "val":true  }
?filter={ "key":"flag" , "val":false }

Table of Contents

Methods

prepareFilterBoolean()  : string
Prepares the filter clause with a boolean attribute.
prepareFilterBooleanValue()  : mixed
Prepare the filter clause with a specific boolean value to evaluates.

Methods

prepareFilterBoolean()

Prepares the filter clause with a boolean attribute.

protected prepareFilterBoolean([array<string|int, mixed> $init = [] ][, array<string|int, mixed>|null &$binds = null ][, string $doc = AQL::DOC ]) : string
Parameters
$init : array<string|int, mixed> = []
$binds : array<string|int, mixed>|null = null
$doc : string = AQL::DOC
Tags
throws
BindException
UnsupportedOperationException
Return values
string

prepareFilterBooleanValue()

Prepare the filter clause with a specific boolean value to evaluates.

protected prepareFilterBooleanValue([array<string|int, mixed>|null $init = [] ][, array<string|int, mixed>|null &$binds = null ]) : mixed
Parameters
$init : array<string|int, mixed>|null = []
$binds : array<string|int, mixed>|null = null
Tags
throws
BindException
On this page

Search results