PHP 클래스 Pop\Db\Adapter\Mysql

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

공개 메소드들

메소드 설명
__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