PHP Класс Doctrine\Common\Cache\FileCache

С версии: 2.3
Автор: Fabio B. Silva ([email protected])
Наследование: extends CacheProvider
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$directory string The cache directory.

Открытые методы

Метод Описание
__construct ( string $directory, string $extension = '', $umask = 2 ) Constructor.
getDirectory ( ) : string Gets the cache directory.
getExtension ( ) : string Gets the cache file extension.

Защищенные методы

Метод Описание
doDelete ( $id )
doFlush ( )
doGetStats ( )
getFilename ( string $id ) : string
writeFile ( string $filename, string $content ) : boolean Writes a string content to file in an atomic way.

Приватные методы

Метод Описание
createPathIfNeeded ( string $path ) : boolean Create path if needed.
getIterator ( ) : Iterator
isFilenameEndingWithExtension ( string $name ) : boolean

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( string $directory, string $extension = '', $umask = 2 )
$directory string The cache directory.
$extension string The cache file extension.

doDelete() защищенный Метод

protected doDelete ( $id )

doFlush() защищенный Метод

protected doFlush ( )

doGetStats() защищенный Метод

protected doGetStats ( )

getDirectory() публичный Метод

Gets the cache directory.
public getDirectory ( ) : string
Результат string

getExtension() публичный Метод

Gets the cache file extension.
public getExtension ( ) : string
Результат string

getFilename() защищенный Метод

protected getFilename ( string $id ) : string
$id string
Результат string

writeFile() защищенный Метод

Writes a string content to file in an atomic way.
protected writeFile ( string $filename, string $content ) : boolean
$filename string Path to the file where to write the data.
$content string The content to write
Результат boolean TRUE on success, FALSE if path cannot be created, if path is not writable or an any other error.

Описание свойств

$directory защищенное свойство

The cache directory.
protected string $directory
Результат string