function hackedProject::compute_details in Hacked! 7.2
Same name and namespace in other branches
- 6.2 includes/hacked_project.inc \hackedProject::compute_details()
Return a nice detailed report.
File
- includes/
hackedProject.inc, line 334
Class
- hackedProject
- Encapsulates a Hacked! project.
Code
function compute_details() {
// Ensure we know the differences.
$report = $this
->compute_report();
$report['files'] = array();
// Add extra details about every file.
$states = array(
'access_denied' => HACKED_STATUS_PERMISSION_DENIED,
'missing' => HACKED_STATUS_DELETED,
'different' => HACKED_STATUS_HACKED,
'same' => HACKED_STATUS_UNHACKED,
);
foreach ($states as $state => $status) {
foreach ($this->result[$state] as $file) {
$report['files'][$file] = $status;
$report['diffable'][$file] = $this
->file_is_diffable($file);
}
}
return $report;
}