protected function DrushMakeProject::__construct

8.0.x make.project.inc protected DrushMakeProject::__construct($project)
6.x make.project.inc protected DrushMakeProject::__construct($project)
7.x make.project.inc protected DrushMakeProject::__construct($project)
5.x make.project.inc protected DrushMakeProject::__construct($project)
master make.project.inc protected DrushMakeProject::__construct($project)

Set attributes and retrieve project information.

6 calls to DrushMakeProject::__construct()
DrushMakeProject_Core::__construct in commands/make/make.project.inc
Override constructor for core to adjust project info.
DrushMakeProject_Library::__construct in commands/make/make.project.inc
Override constructor for libraries to properly set contrib destination.
DrushMakeProject_Module::__construct in commands/make/make.project.inc
Override constructor for modules to properly set contrib destination.
DrushMakeProject_Profile::__construct in commands/make/make.project.inc
Override contructor for installation profiles to properly set contrib destination.
DrushMakeProject_Theme::__construct in commands/make/make.project.inc
Override contructor for themes to properly set contrib destination.

... See full list

6 methods override DrushMakeProject::__construct()
DrushMakeProject_Core::__construct in commands/make/make.project.inc
Override constructor for core to adjust project info.
DrushMakeProject_Library::__construct in commands/make/make.project.inc
Override constructor for libraries to properly set contrib destination.
DrushMakeProject_Module::__construct in commands/make/make.project.inc
Override constructor for modules to properly set contrib destination.
DrushMakeProject_Profile::__construct in commands/make/make.project.inc
Override contructor for installation profiles to properly set contrib destination.
DrushMakeProject_Theme::__construct in commands/make/make.project.inc
Override contructor for themes to properly set contrib destination.

... See full list

File

commands/make/make.project.inc, line 61
Drush Make processing classes.

Class

DrushMakeProject
The base project class.

Code

protected function __construct($project) {
  $project['base_contrib_destination'] = $project['contrib_destination'];
  foreach ($project as $key => $value) {
    $this->{$key} = $value;
  }
  if (!empty($this->options['working-copy'])) {
    $this->download['working-copy'] = TRUE;
  }
}