PHP 클래스 Pop\Db\Adapter\AbstractAdapter

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$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