PHP 클래스 FileStorage, HamlPHP

저자: David Grudl
상속: extends Object, implements ICacheStorage
파일 보기 프로젝트 열기: hamlphp/hamlphp 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_basePath
$_extension
$_path
$_requirePath

공개 메소드들

메소드 설명
__construct ( string $cachePath, string $extension = '.cached.php', string $basePath = '' ) Contructor
cache ( $id, $content )
fetch ( $id )
generateContentId ( $filepath )
isFresh ( $id, $fileName = false )
remove ( $id )

메소드 상세

__construct() 공개 메소드

The param \c $basePath param is used to shorten the unique filename which is generated using the file real path.
public __construct ( string $cachePath, string $extension = '.cached.php', string $basePath = '' )
$cachePath string where to save the cache files
$extension string the extension of the cache file
$basePath string The base path from where the files come from

cache() 공개 메소드

또한 보기: Storage::cache()
public cache ( $id, $content )

fetch() 공개 메소드

또한 보기: Storage::fetch()
public fetch ( $id )

generateContentId() 공개 메소드

public generateContentId ( $filepath )

isFresh() 공개 메소드

또한 보기: Storage::isFresh()
public isFresh ( $id, $fileName = false )

remove() 공개 메소드

또한 보기: Storage::remove()
public remove ( $id )

프로퍼티 상세

$_basePath 보호되어 있는 프로퍼티

protected $_basePath

$_extension 보호되어 있는 프로퍼티

protected $_extension

$_path 보호되어 있는 프로퍼티

protected $_path

$_requirePath 보호되어 있는 프로퍼티

protected $_requirePath