You are here

class hackedFileIncludeEndingsHasher in Hacked! 7.2

Same name and namespace in other branches
  1. 6.2 includes/hacked_project.inc \hackedFileIncludeEndingsHasher

This is a much faster, but potentially less useful file hasher.

Hierarchy

Expanded class hierarchy of hackedFileIncludeEndingsHasher

1 string reference to 'hackedFileIncludeEndingsHasher'
hacked_hacked_file_hashers_info in ./hacked.module
Implements hook_hacked_file_hashers_info().

File

includes/hackedFileIncludeEndingsHasher.inc, line 7

View source
class hackedFileIncludeEndingsHasher extends hackedFileHasher {
  function perform_hash($filename) {
    return sha1_file($filename);
  }
  function fetch_lines($filename) {
    return file($filename);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
hackedFileHasher::cache_get function
hackedFileHasher::cache_key function
hackedFileHasher::cache_set function
hackedFileHasher::hash function Returns a hash of the given filename.
hackedFileIncludeEndingsHasher::fetch_lines function Compute and return the lines of the given file. Overrides hackedFileHasher::fetch_lines
hackedFileIncludeEndingsHasher::perform_hash function Compute and return the hash of the given file. Overrides hackedFileHasher::perform_hash