You are here

class hackedFileIncludeEndingsHasher in Hacked! 8.2

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

Hierarchy

Expanded class hierarchy of hackedFileIncludeEndingsHasher

File

src/hackedFileIncludeEndingsHasher.php, line 8

Namespace

Drupal\hacked
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