From: Alexandre Emsenhuber Date: Sat, 16 Jun 2012 20:35:13 +0000 (+0200) Subject: Improve documentation of maintenance scripts. X-Git-Tag: 1.31.0-rc.0~23295^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=9eee3153aec291cd89b30a06480688da455dcf89;p=lhc%2Fweb%2Fwiklou.git Improve documentation of maintenance scripts. Change-Id: I328a3d42a09f2b082ebc153c2f399793e23942d7 --- diff --git a/maintenance/attachLatest.php b/maintenance/attachLatest.php index 6e09671a73..78cae8cfb3 100644 --- a/maintenance/attachLatest.php +++ b/maintenance/attachLatest.php @@ -1,7 +1,6 @@ * http://www.mediawiki.org/ @@ -27,6 +26,12 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script to correct wrong values in the `page_latest` field + * in the database. + * + * @ingroup Maintenance + */ class AttachLatest extends Maintenance { public function __construct() { diff --git a/maintenance/changePassword.php b/maintenance/changePassword.php index cfcac40670..e4063f9c9c 100644 --- a/maintenance/changePassword.php +++ b/maintenance/changePassword.php @@ -26,6 +26,11 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script to change the password of a given user. + * + * @ingroup Maintenance + */ class ChangePassword extends Maintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/checkAutoLoader.php b/maintenance/checkAutoLoader.php index d199b6feae..ea6c09f2bb 100644 --- a/maintenance/checkAutoLoader.php +++ b/maintenance/checkAutoLoader.php @@ -23,6 +23,11 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script to check classes definitions in the autoloader. + * + * @ingroup Maintenance + */ class CheckAutoLoader extends Maintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/checkBadRedirects.php b/maintenance/checkBadRedirects.php index bac2ff69a0..f8b8955c3a 100644 --- a/maintenance/checkBadRedirects.php +++ b/maintenance/checkBadRedirects.php @@ -1,7 +1,6 @@ ID) to the new schema (ID->ID) - * The wiki should be put into read-only mode while this script executes + * Convert from the old links schema (string->ID) to the new schema (ID->ID). * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,12 +23,20 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script to convert from the old links schema (string->ID) + * to the new schema (ID->ID). + * + * The wiki should be put into read-only mode while this script executes. + * + * @ingroup Maintenance + */ class ConvertLinks extends Maintenance { private $logPerformance; public function __construct() { parent::__construct(); - $this->mDescription = "Convert from the old links schema (string->ID) to the new schema (ID->ID) + $this->mDescription = "Convert from the old links schema (string->ID) to the new schema (ID->ID). The wiki should be put into read-only mode while this script executes"; $this->addArg( 'logperformance', "Log performance to perfLogFilename.", false ); diff --git a/maintenance/convertUserOptions.php b/maintenance/convertUserOptions.php index da6ff9b683..e666b65a13 100644 --- a/maintenance/convertUserOptions.php +++ b/maintenance/convertUserOptions.php @@ -1,6 +1,6 @@ commit( __METHOD__ ); $output->handleOutput( "Done! [$count file(s)]\n" ); } -} \ No newline at end of file +} diff --git a/maintenance/deleteArchivedFiles.php b/maintenance/deleteArchivedFiles.php index 6067c8077e..8709ee88bc 100644 --- a/maintenance/deleteArchivedFiles.php +++ b/maintenance/deleteArchivedFiles.php @@ -1,8 +1,9 @@