Merge "Simplify factory methods of RecentChange."
authorMaxSem <maxsem.wiki@gmail.com>
Fri, 6 Jul 2012 13:03:07 +0000 (13:03 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 6 Jul 2012 13:03:07 +0000 (13:03 +0000)
README
includes/SquidPurgeClient.php
includes/db/ORMTable.php

diff --git a/README b/README
index 8275eff..805b8ee 100644 (file)
--- a/README
+++ b/README
@@ -46,7 +46,6 @@ The MediaWiki software was written by:
 * Victor Vasiliev
 * Rotem Liss
 * Platonides
-* Antoine Musso
 * Many others (view CREDITS for a more complete list)
 
 The contributors hold the copyright to this work, and it is licensed under the
index 7cd2b03..8eb0f6b 100644 (file)
@@ -44,7 +44,15 @@ class SquidPurgeClient {
         * The socket resource, or null for unconnected, or false for disabled due to error
         */
        var $socket;
-       
+
+       var $readBuffer;
+
+       var $bodyRemaining;
+
+       /**
+        * @param $server string
+        * @param $options array
+        */
        public function __construct( $server, $options = array() ) {
                $parts = explode( ':', $server, 2 );
                $this->host = $parts[0];
@@ -340,6 +348,9 @@ class SquidPurgeClient {
                $this->bodyRemaining = null;
        }
 
+       /**
+        * @param $msg string
+        */
        protected function log( $msg ) {
                wfDebugLog( 'squid', __CLASS__." ($this->host): $msg\n" );
        }
@@ -353,6 +364,9 @@ class SquidPurgeClientPool {
        var $clients = array();
        var $timeout = 5;
 
+       /**
+        * @param $options array
+        */
        function __construct( $options = array() ) {
                if ( isset( $options['timeout'] ) ) {
                        $this->timeout = $options['timeout'];
@@ -372,6 +386,9 @@ class SquidPurgeClientPool {
                $startTime = microtime( true );
                while ( !$done ) {
                        $readSockets = $writeSockets = array();
+                       /**
+                        * @var $client SquidPurgeClient
+                        */
                        foreach ( $this->clients as $clientIndex => $client ) {
                                $sockets = $client->getReadSocketsForSelect();
                                foreach ( $sockets as $i => $socket ) {
index 9514562..130fdf9 100644 (file)
@@ -628,7 +628,7 @@ abstract class ORMTable implements IORMTable {
         * @return IORMRow
         */
        public function newFromDBResult( stdClass $result ) {
-               return self::newRowFromFromDBResult( $result );
+               return self::newRowFromDBResult( $result );
        }
 
        /**