PHP Класс Phalcon\Db\Adapter\Cacheable\Mysql

Наследование: extends Phalcon\Db\Adapter\Pdo\Mysql
Показать файл Открыть проект

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

Метод Описание
__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