| Methods |
public
|
__construct(Connection|resource $connection, string $name, array<array-key, int> $parameterMap)
|
#
|
public
|
__destruct()
|
#
|
public
|
bindValue($param, $value, $type = ParameterType::STRING): bool
{@inheritDoc}
Parameters
| $param |
Parameter identifier. For a prepared statement using named placeholders,
this will be a parameter name of the form :name. For a prepared statement
using question mark placeholders, this will be the 1-indexed position of the parameter.
|
| $value |
The value to bind to the parameter.
|
| $type |
Explicit data type for the parameter using the {@see ParameterType}
constants.
|
Returns
TRUE on success or FALSE on failure.
Implements
|
#
|
public
|
bindParam($param, &$variable, $type = ParameterType::STRING, $length = null): bool
{@inheritDoc}
Parameters
| $param |
Parameter identifier. For a prepared statement using named placeholders,
this will be a parameter name of the form :name. For a prepared statement using
question mark placeholders, this will be the 1-indexed position of the parameter.
|
| $variable |
Name of the PHP variable to bind to the SQL statement parameter.
|
| $type |
Explicit data type for the parameter using the {@see ParameterType}
constants.
|
| $length |
You must specify maxlength when using an OUT bind
so that PHP allocates enough memory to hold the returned value.
|
Returns
TRUE on success or FALSE on failure.
Implements
|
#
|
public
|
execute($params = null): Result
{@inheritDoc}
Parameters
| $params |
A numeric array of values with as many elements as there are
bound parameters in the SQL statement being executed.
|
Implements
|
#
|