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

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

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

Метод Описание
__construct ( array $options ) : Mysql Constructor
disconnect ( ) : void Close the DB connection.
escape ( string $value ) : string Return the escaped string value.
execute ( string $sql ) : void Execute the prepared SQL query.
fetch ( ) : array Return the results array from the results resource.
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.
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 Mysql database connection object.
public __construct ( array $options ) : Mysql
$options array
Результат Mysql

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 ( string $sql ) : void
$sql string
Результат void

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

Return the results array from the results resource.
public fetch ( ) : 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

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