function hackedFileHasher::cache_key in Hacked! 7.2
Same name and namespace in other branches
- 6.2 includes/hacked_project.inc \hackedFileHasher::cache_key()
2 calls to hackedFileHasher::cache_key()
- hackedFileHasher::cache_get in includes/
hackedFileHasher.inc - hackedFileHasher::cache_set in includes/
hackedFileHasher.inc
File
- includes/
hackedFileHasher.inc, line 36
Class
- hackedFileHasher
- Base class for the different ways that files can be hashed.
Code
function cache_key($filename) {
$key = array(
'filename' => $filename,
'mtime' => filemtime($filename),
'class_name' => get_class($this),
);
return sha1(serialize($key));
}