You are here

protected function FileCache::getFilename in Plug 7

Parameters

string $id:

Return value

string

6 calls to FileCache::getFilename()
FileCache::doDelete in lib/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php
Deletes a cache entry.
FilesystemCache::doContains in lib/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php
Tests if an entry exists in the cache.
FilesystemCache::doFetch in lib/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php
Fetches an entry from the cache.
FilesystemCache::doSave in lib/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php
Puts data into the cache.
PhpFileCache::doSave in lib/doctrine/cache/lib/Doctrine/Common/Cache/PhpFileCache.php
Puts data into the cache.

... See full list

File

lib/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php, line 110

Class

FileCache
Base file cache driver.

Namespace

Doctrine\Common\Cache

Code

protected function getFilename($id) {
  return $this->directory . DIRECTORY_SEPARATOR . implode(str_split(hash('sha256', $id), 2), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . preg_replace($this->disallowedCharacterPatterns, $this->replacementCharacters, $id) . $this->extension;
}