PHP Класс Zend_Db_Statement_Mysqli

Наследование: extends Zend_Db_Statement
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_keys array Column names.
$_meta array
$_values array Fetched result values.

Открытые методы

Метод Описание
_execute ( array $params = null ) : boolean Executes a prepared statement.
_prepare ( string $sql ) : void
close ( ) : boolean Closes the cursor and the statement.
closeCursor ( ) : boolean Closes the cursor, allowing the statement to be executed again.
columnCount ( ) : integer Returns the number of columns in the result set.
errorCode ( ) : string Retrieves the error code, if any, associated with the last operation on the statement handle.
errorInfo ( ) : array Retrieves an array of error information, if any, associated with the last operation on the statement handle.
fetch ( integer $style = null, integer $cursor = null, integer $offset = null ) : mixed Fetches a row from the result set.
nextRowset ( ) : boolean Retrieves the next rowset (result set) for a SQL statement that has multiple result sets. An example is a stored procedure that returns the results of multiple queries.
rowCount ( ) : integer Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.

Защищенные методы

Метод Описание
_bindParam ( mixed $parameter, mixed &$variable, mixed $type = null, mixed $length = null, mixed $options = null ) : boolean Binds a parameter to the specified variable name.

Описание методов

_bindParam() защищенный Метод

Binds a parameter to the specified variable name.
protected _bindParam ( mixed $parameter, mixed &$variable, mixed $type = null, mixed $length = null, mixed $options = null ) : boolean
$parameter mixed Name the parameter, either integer or string.
$variable mixed Reference to PHP variable containing the value.
$type mixed OPTIONAL Datatype of SQL parameter.
$length mixed OPTIONAL Length of SQL parameter.
$options mixed OPTIONAL Other options.
Результат boolean

_execute() публичный Метод

Executes a prepared statement.
public _execute ( array $params = null ) : boolean
$params array OPTIONAL Values to bind to parameter placeholders.
Результат boolean

_prepare() публичный Метод

public _prepare ( string $sql ) : void
$sql string
Результат void

close() публичный Метод

Closes the cursor and the statement.
public close ( ) : boolean
Результат boolean

closeCursor() публичный Метод

Closes the cursor, allowing the statement to be executed again.
public closeCursor ( ) : boolean
Результат boolean

columnCount() публичный Метод

Returns null if the statement has no result set metadata.
public columnCount ( ) : integer
Результат integer The number of columns.

errorCode() публичный Метод

Retrieves the error code, if any, associated with the last operation on the statement handle.
public errorCode ( ) : string
Результат string error code.

errorInfo() публичный Метод

Retrieves an array of error information, if any, associated with the last operation on the statement handle.
public errorInfo ( ) : array
Результат array

fetch() публичный Метод

Fetches a row from the result set.
public fetch ( integer $style = null, integer $cursor = null, integer $offset = null ) : mixed
$style integer OPTIONAL Fetch mode for this fetch operation.
$cursor integer OPTIONAL Absolute, relative, or other.
$offset integer OPTIONAL Number for absolute or relative cursors.
Результат mixed Array, object, or scalar depending on fetch mode.

nextRowset() публичный Метод

Retrieves the next rowset (result set) for a SQL statement that has multiple result sets. An example is a stored procedure that returns the results of multiple queries.
public nextRowset ( ) : boolean
Результат boolean

rowCount() публичный Метод

Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object.
public rowCount ( ) : integer
Результат integer The number of rows affected.

Описание свойств

$_keys защищенное свойство

Column names.
protected array $_keys
Результат array

$_meta защищенное свойство

protected array $_meta
Результат array

$_values защищенное свойство

Fetched result values.
protected array $_values
Результат array