PHP 클래스 Phalcon\Db\Adapter\Cacheable\Mysql

상속: extends Phalcon\Db\Adapter\Pdo\Mysql
파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
__construct ( array $descriptor ) Class constructor avoids the automatic connection.
execute ( string $sqlStatement, array $bindParams = null, array $bindTypes = null ) : boolean Executes the SQL statement without caching
query ( string $sqlStatement, array $bindParams = null, array $bindTypes = null ) : Serializable The queries executed are stored in the cache
setCache ( Phalcon\Cache\BackendInterface $cache ) Sets a handler to cache the data
tableExists ( string $tableName, string $schemaName = null ) : boolean Checks if a table exists

보호된 메소드들

메소드 설명
internalConnect ( ) Checks if exist an active connection, if not, makes a connection

메소드 상세

__construct() 공개 메소드

Class constructor avoids the automatic connection.
public __construct ( array $descriptor )
$descriptor array

execute() 공개 메소드

Executes the SQL statement without caching
public execute ( string $sqlStatement, array $bindParams = null, array $bindTypes = null ) : boolean
$sqlStatement string
$bindParams array
$bindTypes array
리턴 boolean

internalConnect() 보호된 메소드

Checks if exist an active connection, if not, makes a connection
protected internalConnect ( )

query() 공개 메소드

The queries executed are stored in the cache
public query ( string $sqlStatement, array $bindParams = null, array $bindTypes = null ) : Serializable
$sqlStatement string
$bindParams array
$bindTypes array
리턴 Phalcon\Db\Result\Serializable

setCache() 공개 메소드

Sets a handler to cache the data
public setCache ( Phalcon\Cache\BackendInterface $cache )
$cache Phalcon\Cache\BackendInterface

tableExists() 공개 메소드

Checks if a table exists
public tableExists ( string $tableName, string $schemaName = null ) : boolean
$tableName string
$schemaName string
리턴 boolean