You are here

function hackedFileHasher::cache_key in Hacked! 6.2

Same name and namespace in other branches
  1. 7.2 includes/hackedFileHasher.inc \hackedFileHasher::cache_key()
2 calls to hackedFileHasher::cache_key()
hackedFileHasher::cache_get in includes/hacked_project.inc
hackedFileHasher::cache_set in includes/hacked_project.inc

File

includes/hacked_project.inc, line 724

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));
}