From: Jeroen De Dauw Date: Tue, 10 Aug 2010 06:17:49 +0000 (+0000) Subject: Added some docs X-Git-Tag: 1.31.0-rc.0~35570 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=bf13f7ff9a83d091ab9b197984597c8e838ebe25;p=lhc%2Fweb%2Fwiklou.git Added some docs --- 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__ );