class DrushMakeProject_Library
- 6.x commands/make/make.project.inc DrushMakeProject_Library
- 5.x commands/make/make.project.inc DrushMakeProject_Library
For processing libraries.
Hierarchy
- class DrushMakeProject
- class DrushMakeProject_Library
Expanded class hierarchy of DrushMakeProject_Library
Members
|
Name |
Modifiers | Type | Description |
|---|---|---|---|
| DrushMakeProject::$downloaded | protected | property | TRUE if download() method has been called successfully, otherwise FALSE. |
| DrushMakeProject::$download_location | protected | property | Download location to use. |
| DrushMakeProject::$made | protected | property | TRUE if make() has been called, otherwise FALSE. |
| DrushMakeProject::$overwrite | protected | property | Default to overwrite to allow recursive builds to process properly. |
| DrushMakeProject::$self | protected static | property | Keep track of instances. |
| DrushMakeProject::addLockfile | function | Add a lock file. | |
| DrushMakeProject::applyPatches | function | Retrieve and apply any patches specified by the makefile to this project. | |
| DrushMakeProject::buildPath | protected | function | Return the proper path for dependencies to be placed in. |
| DrushMakeProject::download | function | Download a project. | |
| DrushMakeProject::findDownloadLocation | function | Determine the location to download project to. | |
| DrushMakeProject::generatePath | protected | function | Generate the proper path for this project type. |
| DrushMakeProject::getInstance | public static | function | Get an instance for the type and project. |
| DrushMakeProject::make | function | Build a project. | |
| DrushMakeProject::processGitInfoFiles | function | Process info files when downloading things from git. | |
| DrushMakeProject::removeGitDirectory | function | Remove the .git directory from a project. | |
| DrushMakeProject_Library::getTranslations | function | No translations for libraries. Overrides DrushMakeProject::getTranslations | |
| DrushMakeProject_Library::recurse | function | No recursion for libraries, sorry :-( Overrides DrushMakeProject::recurse | |
| DrushMakeProject_Library::__construct | protected | function | Override constructor for libraries to properly set contrib destination. Overrides DrushMakeProject::__construct |
File
- commands/
make/ make.project.inc, line 517 - Drush Make processing classes.
View source
class DrushMakeProject_Library extends DrushMakeProject {
/**
* Override constructor for libraries to properly set contrib destination.
*/
protected function __construct(&$project) {
parent::__construct($project);
// Allow libraries to specify where they should live in the build path.
if (isset($project['destination'])) {
$project_path = $project['destination'];
}
else {
$project_path = 'libraries';
}
$this->contrib_destination = ($this->base_contrib_destination != '.' ? $this->base_contrib_destination . '/' : '') . $project_path;
}
/**
* No recursion for libraries, sorry :-(
*/
function recurse($path) {
// Return TRUE so that processing continues in the make() method.
return TRUE;
}
/**
* No translations for libraries.
*/
function getTranslations($download_location) {
// Return TRUE so that processing continues in the make() method.
return TRUE;
}
}