function hackedProject::__construct in Hacked! 8.2
Constructor.
File
- src/
hackedProject.php, line 46
Class
- hackedProject
- Encapsulates a Hacked! project.
Namespace
Drupal\hackedCode
function __construct($name) {
// Identify the project.
$this->name = $name;
$this
->identify_project();
// Choose an appropriate downloader.
if ($this
->isDevVersion()) {
$this->remote_files_downloader = new hackedProjectWebDevDownloader($this);
}
else {
$this->remote_files_downloader = new hackedProjectWebFilesDownloader($this);
}
}