PHP Класс Pop\Db\Adapter\Mysqli

Автор: Nick Sagona, III ([email protected])
Наследование: extends AbstractAdapter
Показать файл Открыть проект

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

Свойство Тип Описание
$statement MySQLi_STMT Prepared statement

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

Метод Описание
__construct ( array $options ) : Mysqli Constructor
bindParams ( array $params ) : Mysqli Bind parameters to a prepared SQL query.
disconnect ( ) : void Close the DB connection.
escape ( string $value ) : string Return the escaped string value.
execute ( ) : void Execute the prepared SQL query.
fetch ( ) : array Return the results array from the results resource.
fetchResult ( ) : array Bind result values to variables and fetch and return the values.
lastId ( ) : integer Return the auto-increment ID of the last query.
numFields ( ) : integer Return the number of fields in the result.
numRows ( ) : integer Return the number of rows in the result.
prepare ( string $sql ) : Mysqli Prepare a SQL query.
query ( string $sql ) : void Execute the SQL query and create a result resource, or display the SQL error.
showError ( ) : void Throw an exception upon a database error.
version ( ) : string Return the database version.

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

Метод Описание
loadTables ( ) : array Get an array of the tables of the database.

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

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

Instantiate the MySQLi database connection object.
public __construct ( array $options ) : Mysqli
$options array
Результат Mysqli

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

Bind parameters to a prepared SQL query.
public bindParams ( array $params ) : Mysqli
$params array
Результат Mysqli

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

Close the DB connection.
public disconnect ( ) : void
Результат void

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

Return the escaped string value.
public escape ( string $value ) : string
$value string
Результат string

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

Execute the prepared SQL query.
public execute ( ) : void
Результат void

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

Return the results array from the results resource.
public fetch ( ) : array
Результат array

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

Bind result values to variables and fetch and return the values.
public fetchResult ( ) : array
Результат array

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

Return the auto-increment ID of the last query.
public lastId ( ) : integer
Результат integer

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

Get an array of the tables of the database.
protected loadTables ( ) : array
Результат array

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

Return the number of fields in the result.
public numFields ( ) : integer
Результат integer

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

Return the number of rows in the result.
public numRows ( ) : integer
Результат integer

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

Prepare a SQL query.
public prepare ( string $sql ) : Mysqli
$sql string
Результат Mysqli

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

Execute the SQL query and create a result resource, or display the SQL error.
public query ( string $sql ) : void
$sql string
Результат void

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

Throw an exception upon a database error.
public showError ( ) : void
Результат void

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

Return the database version.
public version ( ) : string
Результат string

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

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

Prepared statement
protected MySQLi_STMT $statement
Результат MySQLi_STMT