mediatekformation

Statement
in package
implements Statement

Interfaces, Classes, Traits and Enums

Statement
Driver-level statement

Table of Contents

$boundValues  : array<string|int, mixed>
$paramTypeMap  : array<string|int, string>
$stmt  : mysqli_stmt
$types  : string
$values  : array<string|int, mixed>
Contains ref values for bindValue().
bindParam()  : bool
Binds a PHP variable to a corresponding named (not supported by mysqli driver, see comment below) or question mark placeholder in the SQL statement that was use to prepare the statement. Unlike {@link bindValue()}, the variable is bound as a reference and will only be evaluated at the time that PDOStatement->execute() is called.
bindValue()  : bool
Binds a value to a corresponding named (not supported by mysqli driver, see comment below) or positional placeholder in the SQL statement that was used to prepare the statement.
execute()  : Result
Executes a prepared statement
bindTypedParameters()  : void
Binds parameters with known types previously bound to the statement
bindUntypedValues()  : bool
Binds a array of values to bound parameters.
sendLongData()  : void
Handle $this->_longData after regular query parameters have been bound

Properties

$boundValues

private array<string|int, mixed> $boundValues

$paramTypeMap

private static array<string|int, string> $paramTypeMap = [\Doctrine\DBAL\ParameterType::ASCII => 's', \Doctrine\DBAL\ParameterType::STRING => 's', \Doctrine\DBAL\ParameterType::BINARY => 's', \Doctrine\DBAL\ParameterType::BOOLEAN => 'i', \Doctrine\DBAL\ParameterType::NULL => 's', \Doctrine\DBAL\ParameterType::INTEGER => 'i', \Doctrine\DBAL\ParameterType::LARGE_OBJECT => 'b']

$values

Contains ref values for bindValue().

private array<string|int, mixed> $values = []

Methods

bindParam()

Binds a PHP variable to a corresponding named (not supported by mysqli driver, see comment below) or question mark placeholder in the SQL statement that was use to prepare the statement. Unlike {@link bindValue()}, the variable is bound as a reference and will only be evaluated at the time that PDOStatement->execute() is called.

public bindParam(mixed $param, mixed &$variable[, mixed $type = ParameterType::STRING ][, mixed $length = null ]) : bool
Parameters
$param : mixed

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 : mixed

Name of the PHP variable to bind to the SQL statement parameter.

$type : mixed = ParameterType::STRING

Explicit data type for the parameter using the constants.

$length : mixed = null

You must specify maxlength when using an OUT bind so that PHP allocates enough memory to hold the returned value.

Return values
bool

TRUE on success or FALSE on failure.

bindValue()

Binds a value to a corresponding named (not supported by mysqli driver, see comment below) or positional placeholder in the SQL statement that was used to prepare the statement.

public bindValue(mixed $param, mixed $value[, mixed $type = ParameterType::STRING ]) : bool
Parameters
$param : mixed

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 : mixed

The value to bind to the parameter.

$type : mixed = ParameterType::STRING

Explicit data type for the parameter using the constants.

Return values
bool

TRUE on success or FALSE on failure.

execute()

Executes a prepared statement

public execute([mixed $params = null ]) : Result
Parameters
$params : mixed = null

A numeric array of values with as many elements as there are bound parameters in the SQL statement being executed.

Return values
Result

bindTypedParameters()

Binds parameters with known types previously bound to the statement

private bindTypedParameters() : void
Tags
throws
Exception
Return values
void

bindUntypedValues()

Binds a array of values to bound parameters.

private bindUntypedValues(array<string|int, mixed> $values) : bool
Parameters
$values : array<string|int, mixed>
Return values
bool

sendLongData()

Handle $this->_longData after regular query parameters have been bound

private sendLongData(array<int, resource> $streams) : void
Parameters
$streams : array<int, resource>
Tags
throws
Exception
Return values
void

Search results