From a75b6d53cd5480e8274f40f47172f311b04d0b3f Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 2 Sep 2012 20:33:22 +0200 Subject: [PATCH] Improve documentation of maintenance scripts. Also contains a fix for Ia5a38311 (fae0550). Change-Id: I630c83b48b66c5d8c97411082cabd731f316f42d --- includes/objectcache/ObjectCacheSessionHandler.php | 2 +- maintenance/showJobs.php | 11 +++++++++-- maintenance/showStats.php | 8 +++++++- maintenance/sql.php | 5 +++++ maintenance/sqlite.inc | 4 +++- maintenance/sqlite.php | 8 +++++++- maintenance/stats.php | 8 +++++++- maintenance/syncFileBackend.php | 7 +++++++ 8 files changed, 46 insertions(+), 7 deletions(-) diff --git a/includes/objectcache/ObjectCacheSessionHandler.php b/includes/objectcache/ObjectCacheSessionHandler.php index d90c9f11ab..f55da94d7e 100644 --- a/includes/objectcache/ObjectCacheSessionHandler.php +++ b/includes/objectcache/ObjectCacheSessionHandler.php @@ -1,5 +1,5 @@ * Based on initStats.php by: @@ -30,6 +31,11 @@ require_once( __DIR__ . '/Maintenance.php' ); +/** + * Maintenance script to show the cached statistics. + * + * @ingroup Maintenance + */ class ShowStats extends Maintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/sql.php b/maintenance/sql.php index 7483dcc76f..c3d0e62765 100644 --- a/maintenance/sql.php +++ b/maintenance/sql.php @@ -23,6 +23,11 @@ require_once( __DIR__ . '/Maintenance.php' ); +/** + * Maintenance script that sends SQL queries from the specified file to the database. + * + * @ingroup Maintenance + */ class MwSql extends Maintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/sqlite.inc b/maintenance/sqlite.inc index 1f821917c1..a8a1fce680 100644 --- a/maintenance/sqlite.inc +++ b/maintenance/sqlite.inc @@ -23,6 +23,8 @@ /** * This class contains code common to different SQLite-related maintenance scripts + * + * @ingroup Maintenance */ class Sqlite { @@ -85,4 +87,4 @@ class Sqlite { $db->close(); return true; } - }; \ No newline at end of file + }; diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 7a22df598f..4085c59b29 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -1,6 +1,6 @@