PHP Class Phalcon\Db\Adapter\Cacheable\Mysql

Inheritance: extends Phalcon\Db\Adapter\Pdo\Mysql
Afficher le fichier Open project: phalcon/incubator

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
internalConnect ( ) Checks if exist an active connection, if not, makes a connection

Method Details

__construct() public méthode

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

execute() public méthode

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

internalConnect() protected méthode

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

query() public méthode

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
Résultat Phalcon\Db\Result\Serializable

setCache() public méthode

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

tableExists() public méthode

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