ArangoDB-PHP API Documentation
  • Namespace
  • Class
  • Deprecated

Namespaces

  • triagens
    • ArangoDb

Classes

  • AdminHandler
  • AqlUserFunction
  • Autoloader
  • Batch
  • BatchPart
  • BindVars
  • Collection
  • CollectionHandler
  • Connection
  • ConnectionOptions
  • Cursor
  • Database
  • DefaultValues
  • Document
  • DocumentHandler
  • Edge
  • EdgeDefinition
  • EdgeHandler
  • Endpoint
  • Export
  • ExportCursor
  • Graph
  • GraphHandler
  • Handler
  • HttpHelper
  • HttpResponse
  • QueryCacheHandler
  • QueryHandler
  • Statement
  • TraceRequest
  • TraceResponse
  • Transaction
  • Traversal
  • UpdatePolicy
  • UrlHelper
  • Urls
  • User
  • UserHandler
  • ValueValidator
  • Vertex
  • VertexHandler

Exceptions

  • ClientException
  • ConnectException
  • Exception
  • ServerException

Class BindVars

A simple container for bind variables

This container also handles validation of the bind values.

Namespace: triagens\ArangoDb
Package: triagens\ArangoDb
Since: 0.2
Located at BindVars.php

Methods summary

public array
# getAll( )

Get all registered bind variables

Get all registered bind variables

Returns

array
  • array of all registered bind variables
public integer
# getCount( )

Get the number of bind variables registered

Get the number of bind variables registered

Returns

integer
  • number of bind variables registered
public
# set( string|integer|array $name, string $value = null )

Set the value of a single bind variable or set all bind variables at once

Set the value of a single bind variable or set all bind variables at once

This will also validate the bind values.

Allowed value types for bind parameters are string, int, double, bool and array. Arrays must not contain any other than these types.

Parameters

$name
  • name of bind variable OR an array with all bind variables
$value
  • value for bind variable

Throws

triagens\ArangoDb\ClientException
public mixed
# get( string $name )

Get the value of a bind variable with a specific name

Get the value of a bind variable with a specific name

Parameters

$name
  • name of bind variable

Returns

mixed
  • value of bind variable
ArangoDB-PHP API Documentation API documentation generated by ApiGen