ActiveTrait
Inject the 'prepareActive' method to generates the doc.active == 1|0 predicates in a AQL query.
Table of Contents
Properties
- $activable : bool
Methods
- initializeActivable() : static
- Initialize the activable flag to check if the documents are 'active' or not.
- prepareActive() : string|null
- Prepare the 'active' variable.
Properties
$activable
public
bool
$activable
= false
Methods
initializeActivable()
Initialize the activable flag to check if the documents are 'active' or not.
public
initializeActivable([array<string|int, mixed> $init = [] ]) : static
Parameters
- $init : array<string|int, mixed> = []
Return values
staticprepareActive()
Prepare the 'active' variable.
public
prepareActive([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