CI_DB_Cache Class Reference

List of all members.

Public Member Functions

 CI_DB_Cache (&$db)
 check_path ($path= '')
 read ($sql)
 write ($sql, $object)
 delete ($segment_one= '', $segment_two= '')
 delete_all ()

Public Attributes

 $CI
 $db


Member Function Documentation

CI_DB_Cache::check_path ( path = ''  ) 

Set Cache Directory Path

public

Parameters:
string the path to the cache directory
Returns:
bool

CI_DB_Cache::CI_DB_Cache ( &$  db  ) 

Constructor

Grabs the CI super object instance so we can access it.

CI_DB_Cache::delete ( segment_one = '',
segment_two = '' 
)

Delete cache files within a particular directory

public

Returns:
bool

CI_DB_Cache::delete_all (  ) 

Delete all existing cache files

public

Returns:
bool

CI_DB_Cache::read ( sql  ) 

Retrieve a cached query

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

Returns:
string

CI_DB_Cache::write ( sql,
object 
)

Write a query to a cache file

public

Returns:
bool


Member Data Documentation

CI_DB_Cache::$CI

CI_DB_Cache::$db


The documentation for this class was generated from the following file:

Generated on Sun Nov 16 16:09:08 2008 for CodeIgniter by  doxygen 1.5.7.1