Provides graph traversal
A Traversal object is used to execute a graph traversal on the server side.
The object requires the connection object, the startVertex, the edgeCollection and the optional parameters.
link | https://docs.arangodb.com/HTTP/Traversal/index.html |
---|---|
package | ArangoDBClient |
since | 1.4 |
__construct(\ArangoDBClient\Connection $connection, string $startVertex, string $edgeCollection, array $options = null
)
\ArangoDBClient\Connection
string
string
array
\ArangoDBClient\ClientException |
---|
__get(string $key) : mixed
This function is mapped to get() internally.
magic |
---|
string
mixed
- value of attribute, NULL if attribute is not set__isset(string $key) : boolean
string
boolean
returns true or false (set or not set)__set(string $key, mixed $value) : void
This is a magic method that allows the object to be used without declaring all attributes first.
magic |
---|
string
mixed
\ArangoDBClient\ClientException |
---|
__toString() : string
magic |
---|
string
- the current action stringget(string $key) : mixed
magic |
---|
string
mixed
- value of attribute, NULL if attribute is not setgetEdgeCollection() : string
string
namegetResult() : array
\ArangoDBClient\Exception |
|
---|---|
\ArangoDBClient\ClientException |
array
$responseArraygetStartVertex() : string
string
nameset($key, $value)
\ArangoDBClient\ClientException |
---|
setEdgeCollection(string $value)
string
\ArangoDBClient\ClientException |
---|
setStartVertex(string $value)
correct: 'myNamespace:myFunction' 'myRootNamespace:mySubNamespace:myFunction'
wrong: 'myFunction'
string
\ArangoDBClient\ClientException |
---|
getConnection() : \ArangoDBClient\Connection
\ArangoDBClient\Connection
- the connection object$_action :
$attributes : array
array()
$_connection : \ArangoDBClient\Connection
ENTRY_EDGECOLLECTION = 'edgeCollection'
ENTRY_STARTVERTEX = 'startVertex'
OPTION_FIELDS = 'fields'