PHP Class Phalcon\Db\Adapter\Cacheable\Mysql

Inheritance: extends Phalcon\Db\Adapter\Pdo\Mysql
Datei anzeigen Open project: phalcon/incubator

Public Methods

Method Description
__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

Protected Methods

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

Method Details

__construct() public method

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

execute() public method

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

internalConnect() protected method

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

query() public method

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
return Phalcon\Db\Result\Serializable

setCache() public method

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

tableExists() public method

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