function hackedProject::download_remote_project in Hacked! 7.2
Same name and namespace in other branches
- 6.2 includes/hacked_project.inc \hackedProject::download_remote_project()
Downloads the remote project to be hashed later.
2 calls to hackedProject::download_remote_project()
- hackedProject::file_get_location in includes/
hackedProject.inc - hackedProject::hash_remote_project in includes/
hackedProject.inc - Hashes the remote project downloaded earlier.
File
- includes/
hackedProject.inc, line 136
Class
- hackedProject
- Encapsulates a Hacked! project.
Code
function download_remote_project() {
// Only do this once, no matter how many times we're called.
if (!empty($this->remote_downloaded)) {
return;
}
$this
->identify_project();
$this->remote_downloaded = (bool) $this->remote_files_downloader
->download();
// Logging.
if (!$this->remote_downloaded) {
watchdog('hacked', 'Could not download project: @title', array(
'@title' => $this
->title(),
), WATCHDOG_ERROR);
}
}