- Patch #855410 by aspilicious: add missing doc and newlines in updater.inc.

merge-requests/26/head
Dries Buytaert 2010-07-21 00:28:14 +00:00
parent 34a7bbcf54
commit 19c7193c4c
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,7 @@ interface DrupalUpdaterInterface {
/**
* Checks if the project is installed.
*
* @return bool
*/
public function isInstalled();
@ -49,6 +50,7 @@ interface DrupalUpdaterInterface {
* @param string $directory
*
* @return bool
* TRUE if the project is installed, FALSE if not.
*/
public static function canUpdateDirectory($directory);
@ -105,6 +107,7 @@ class Updater {
*
* @param string $directory
* Extracted Drupal project.
*
* @return string
* The class name which can work with this project type.
*/
@ -129,6 +132,7 @@ class Updater {
*
* @param string $directory
* Directory to search in.
*
* @return string
* Path to the info file.
*/
@ -155,7 +159,9 @@ class Updater {
* provide their canonical name.
*
* @param string $directory
*
* @return string
* The name of the project.
*/
public static function getProjectName($directory) {
return basename($directory);
@ -166,7 +172,9 @@ class Updater {
*
* @param string $directory
* Directory to search for the info file.
*
* @return string
* The title of the project.
*/
public static function getProjectTitle($directory) {
$info_file = self::findInfoFile($directory);
@ -182,6 +190,7 @@ class Updater {
*
* @param array $overrides
* An array of overrides for the default parameters.
*
* @return array
* An array of configuration parameters for an update or install operation.
*/