Class BindVars
A simple container for bind variables
This container also handles validation of the bind values.
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
Throws
|
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
Returns
|