buildEdgeVariables.php
Table of Contents
Functions
- buildEdgesVariables() : string
- Generates a string of multiple AQL 'LET' statements for all defined edge variables.
Functions
buildEdgesVariables()
Generates a string of multiple AQL 'LET' statements for all defined edge variables.
buildEdgesVariables([array<string|int, mixed> &$variables = [] ][, array<string|int, mixed> $definitions = [] ][, string $startVertex = AQL::DOC ][, ContainerInterface|null $container = null ][, array<string|int, mixed> $init = [] ]) : string
This is a convenience method that iterates over a list of definitions and calls getEdgeVariable() for each one, concatenating the results.
Parameters
- $variables : array<string|int, mixed> = []
-
The variables list reference to fill.
- $definitions : array<string|int, mixed> = []
-
An associative array of edge definitions [ $name => $definition ].
- $startVertex : string = AQL::DOC
-
The default AQL document reference (start vertex) for all traversals.
- $container : ContainerInterface|null = null
-
The DI Container reference.
- $init : array<string|int, mixed> = []
-
Optional associative array definition.
Tags
Return values
string —A string containing all generated AQL 'LET' statements, or an empty string if none.