From bf13f7ff9a83d091ab9b197984597c8e838ebe25 Mon Sep 17 00:00:00 2001 From: Jeroen De Dauw Date: Tue, 10 Aug 2010 06:17:49 +0000 Subject: [PATCH] Added some docs --- includes/GlobalFunctions.php | 2 ++ includes/db/LoadBalancer.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 81705d36d6..c69cdad6c4 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2954,6 +2954,8 @@ function wfSplitWikiID( $wiki ) { * Note: multiple calls to wfGetDB(DB_SLAVE) during the course of one request * will always return the same object, unless the underlying connection or load * balancer is manually destroyed. + * + * @return DatabaseBase */ function &wfGetDB( $db, $groups = array(), $wiki = false ) { return wfGetLB( $wiki )->getConnection( $db, $groups, $wiki ); diff --git a/includes/db/LoadBalancer.php b/includes/db/LoadBalancer.php index 30f76b78b8..3b41397459 100644 --- a/includes/db/LoadBalancer.php +++ b/includes/db/LoadBalancer.php @@ -400,9 +400,12 @@ class LoadBalancer { /** * Get a connection by index * This is the main entry point for this class. + * * @param $i Integer: server index * @param $groups Array: query groups * @param $wiki String: wiki ID + * + * @return DatabaseBase */ public function &getConnection( $i, $groups = array(), $wiki = false ) { wfProfileIn( __METHOD__ ); -- 2.20.1