Arango PHP ODM

Statement
in package
implements StatementInterface

Represents an prepared AQL Statement

Tags
author

Lucas S. Vieira

Table of Contents

Interfaces

StatementInterface
StatementInterface

Methods

__construct()  : mixed
Statement constructor.
__toString()  : string
String representation of query
bindValue()  : bool
Binds a value to specified parameter name.
getBindVars()  : array<string|int, mixed>
Get the bind vars
getQuery()  : string
Returns the query string
hasAliases()  : bool
If the query has some alias on it to receive an value after through binding
toAql()  : string
'Resolves' the query, returning the string after bind all params and values

Methods

__construct()

Statement constructor.

public __construct(string $query) : mixed
Parameters
$query : string

AQL query string.

__toString()

String representation of query

public __toString() : string
Return values
string

bindValue()

Binds a value to specified parameter name.

public bindValue(string $parameter, mixed $value) : bool
Parameters
$parameter : string

Parameter name.

$value : mixed

Value for parameter.

Tags
throws
InvalidParameterException
Return values
bool

True if the parameter has an alias on query string. False otherwise.

getBindVars()

Get the bind vars

public getBindVars() : array<string|int, mixed>
Return values
array<string|int, mixed>

getQuery()

Returns the query string

public getQuery() : string
Return values
string

hasAliases()

If the query has some alias on it to receive an value after through binding

public hasAliases() : bool
Return values
bool

toAql()

'Resolves' the query, returning the string after bind all params and values

public toAql() : string
Tags
throws
StatementException
Return values
string

        
On this page

Search results