From 9eee3153aec291cd89b30a06480688da455dcf89 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 16 Jun 2012 22:35:13 +0200 Subject: [PATCH] Improve documentation of maintenance scripts. Change-Id: I328a3d42a09f2b082ebc153c2f399793e23942d7 --- maintenance/attachLatest.php | 9 +++++++-- maintenance/changePassword.php | 5 +++++ maintenance/checkAutoLoader.php | 5 +++++ maintenance/checkBadRedirects.php | 8 ++++++-- maintenance/checkImages.php | 7 ++++++- maintenance/checkSyntax.php | 5 +++++ maintenance/checkUsernames.php | 12 +++++++++--- maintenance/convertLinks.php | 13 ++++++++++--- maintenance/convertUserOptions.php | 9 ++++++++- maintenance/copyFileBackend.php | 18 ++++++++++++------ maintenance/createAndPromote.php | 9 +++++++-- maintenance/deleteArchivedFiles.inc | 8 +++++++- maintenance/deleteArchivedFiles.php | 10 ++++++++-- maintenance/deleteArchivedRevisions.php | 11 +++++++++-- 14 files changed, 104 insertions(+), 25 deletions(-) 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 @@