\triagens\ArangoDbBindVars

A simple container for bind variables

This container also handles validation of the bind values.

Summary

Methods
Properties
Constants
getAll()
getCount()
get()
set()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_values
N/A

Properties

$_values

$_values : array

Current bind values

Type

array

Methods

getAll()

getAll() : array

Get all registered bind variables

Returns

array —
  • array of all registered bind variables

getCount()

getCount() : integer

Get the number of bind variables registered

Returns

integer —
  • number of bind variables registered

get()

get(string $name) : mixed

Get the value of a bind variable with a specific name

Parameters

string $name
  • name of bind variable

Returns

mixed —
  • value of bind variable

set()

set(mixed $name, string $value) : void

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

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

Throws

\triagens\ArangoDb\ClientException