PHP 클래스 CI_DB_Cache, TastyIgniter

저자: ExpressionEngine Dev Team
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$CI object CI Singleton
$db object Allows passing of DB object so that multiple database connections and returned DB objects can be supported.

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( &$db ) : void
리턴 void

check_path() 공개 메소드

Set Cache Directory Path
public check_path ( string $path = '' ) : boolean
$path string Path to the cache directory
리턴 boolean

delete() 공개 메소드

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

delete_all() 공개 메소드

Delete all existing cache files
public delete_all ( ) : void
리턴 void

read() 공개 메소드

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
리턴 string

write() 공개 메소드

Write a query to a cache file
public write ( string $sql, object $object ) : boolean
$sql string
$object object
리턴 boolean

프로퍼티 상세

$CI 공개적으로 프로퍼티

CI Singleton
public object $CI
리턴 object

$db 공개적으로 프로퍼티

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