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

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

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

Свойство Тип Описание
$connection resource Default database connection
$result resource Database results
$tables array Database tables

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

Метод Описание
__construct ( array $options ) : AbstractAdapter Constructor
disconnect ( ) : void Disconnect from the database
escape ( string $value ) : string Return the escaped string value.
fetch ( ) : array Return the results array from the results resource.
getConnection ( ) : resource Get the connection resource
getResult ( ) : resource Get the result resource
getTables ( ) : array Get an array of the tables of the database.
hasResult ( ) : boolean Determine whether or not an result resource exists
isConnected ( ) : boolean Determine whether or not connected
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 Load the tables of the database into an array.

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

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

Instantiate the database adapter object.
abstract public __construct ( array $options ) : AbstractAdapter
$options array
Результат AbstractAdapter

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

Disconnect from the database
abstract public disconnect ( ) : void
Результат void

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

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

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

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

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

Get the connection resource
public getConnection ( ) : resource
Результат resource

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

Get the result resource
public getResult ( ) : resource
Результат resource

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

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

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

Determine whether or not an result resource exists
public hasResult ( ) : boolean
Результат boolean

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

Determine whether or not connected
public isConnected ( ) : boolean
Результат boolean

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

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

loadTables() абстрактный защищенный Метод

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

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

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

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

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

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

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

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

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

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

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

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

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

Default database connection
protected resource $connection
Результат resource

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

Database results
protected resource $result
Результат resource

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

Database tables
protected array $tables
Результат array