PHP Класс FileStorage, HamlPHP

Автор: David Grudl
Наследование: extends Object, implements ICacheStorage
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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