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
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
Return values
stringprepareFilterBooleanValue()
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