Oihana PHP Arango

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

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
static

prepareActive()

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
Tags
throws
BindException
Return values
string|null
On this page

Search results