PHP Class CI_DB_Cache, TastyIgniter

Author: ExpressionEngine Dev Team
Afficher le fichier Open project: tastyigniter/tastyigniter Class Usage Examples

Méthodes publiques

Свойство Type Description
$CI object CI Singleton
$db object Allows passing of DB object so that multiple database connections and returned DB objects can be supported.

Méthodes publiques

Méthode Description
__construct ( &$db ) : void Constructor
check_path ( string $path = '' ) : boolean Set Cache Directory Path
delete ( string $segment_one = '', string $segment_two = '' ) : void Delete cache files within a particular directory
delete_all ( ) : void Delete all existing cache files
read ( string $sql ) : string Retrieve a cached query
write ( string $sql, object $object ) : boolean Write a query to a cache file

Method Details

__construct() public méthode

Constructor
public __construct ( &$db ) : void
Résultat void

check_path() public méthode

Set Cache Directory Path
public check_path ( string $path = '' ) : boolean
$path string Path to the cache directory
Résultat boolean

delete() public méthode

Delete cache files within a particular directory
public delete ( string $segment_one = '', string $segment_two = '' ) : void
$segment_one string
$segment_two string
Résultat void

delete_all() public méthode

Delete all existing cache files
public delete_all ( ) : void
Résultat void

read() public méthode

The URI being requested will become the name of the cache sub-folder. An MD5 hash of the SQL statement will become the cache file name.
public read ( string $sql ) : string
$sql string
Résultat string

write() public méthode

Write a query to a cache file
public write ( string $sql, object $object ) : boolean
$sql string
$object object
Résultat boolean

Property Details

$CI public_oe property

CI Singleton
public object $CI
Résultat object

$db public_oe property

Allows passing of DB object so that multiple database connections and returned DB objects can be supported.
public object $db
Résultat object