From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/db/LBFactory.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'includes/db/LBFactory.php') diff --git a/includes/db/LBFactory.php b/includes/db/LBFactory.php index 22a84960..dec6ae16 100644 --- a/includes/db/LBFactory.php +++ b/includes/db/LBFactory.php @@ -42,7 +42,6 @@ abstract class LBFactory { /** * Shut down, close connections and destroy the cached instance. - * */ static function destroyInstance() { if ( self::$instance ) { @@ -64,6 +63,7 @@ abstract class LBFactory { /** * Construct a factory based on a configuration array (typically from $wgLBFactoryConf) + * @param $conf */ abstract function __construct( $conf ); @@ -110,6 +110,8 @@ abstract class LBFactory { * Execute a function for each tracked load balancer * The callback is called with the load balancer as the first parameter, * and $params passed as the subsequent parameters. + * @param $callback string|array + * @param array $params */ abstract function forEachLB( $callback, $params = array() ); @@ -121,6 +123,8 @@ abstract class LBFactory { /** * Call a method of each tracked load balancer + * @param $methodName string + * @param $args array */ function forEachLBCallMethod( $methodName, $args = array() ) { $this->forEachLB( array( $this, 'callMethod' ), array( $methodName, $args ) ); @@ -128,6 +132,9 @@ abstract class LBFactory { /** * Private helper for forEachLBCallMethod + * @param $loadBalancer + * @param $methodName string + * @param $args */ function callMethod( $loadBalancer, $methodName, $args ) { call_user_func_array( array( $loadBalancer, $methodName ), $args ); @@ -232,6 +239,8 @@ class LBFactory_Simple extends LBFactory { * Execute a function for each tracked load balancer * The callback is called with the load balancer as the first parameter, * and $params passed as the subsequent parameters. + * @param $callback + * @param $params array */ function forEachLB( $callback, $params = array() ) { if ( isset( $this->mainLB ) ) { -- cgit v1.2.2