function hackedProject::hash_local_project in Hacked! 6.2
Same name and namespace in other branches
- 7.2 includes/hackedProject.inc \hackedProject::hash_local_project()
Hash the local version of the project.
3 calls to hackedProject::hash_local_project()
- hackedProject::compute_differences in includes/
hacked_project.inc - Compute the differences between our version and the cannoical version of the project.
- hackedProject::file_get_location in includes/
hacked_project.inc - hackedProject::file_is_diffable in includes/
hacked_project.inc
File
- includes/
hacked_project.inc, line 179
Class
- hackedProject
- Ensapsulates a Hacked! project.
Code
function hash_local_project() {
// Only do this once, no matter how many times we're called.
if (!empty($this->local_hashed)) {
return;
}
$location = $this
->locate_local_project();
$this->local_files = hackedFileGroup::fromList($location, $this->remote_files->files);
$this->local_files
->compute_hashes();
$this->local_hashed = TRUE;
}