Add/tweak/update documentation and add some explicit defintions with type descriptions
authorSam Reed <reedy@users.mediawiki.org>
Fri, 25 Mar 2011 10:56:54 +0000 (10:56 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 25 Mar 2011 10:56:54 +0000 (10:56 +0000)
includes/objectcache/MemcachedClient.php
includes/objectcache/MemcachedPhpBagOStuff.php
includes/objectcache/SqlBagOStuff.php

index 2cb3b29..1d64f45 100644 (file)
@@ -554,7 +554,7 @@ class MWMemcached {
         *       with a \n.  This is with the PHP flag auto_detect_line_endings set
         *       to falase (the default).
         *
-        * @param $sock Ressource: socket to send command on
+        * @param $sock Resource: socket to send command on
         * @param $cmd String: command to run
         *
         * @return Array: output array
@@ -857,7 +857,7 @@ class MWMemcached {
        /**
         * Load items into $ret from $sock
         *
-        * @param $sock Ressource: socket to read from
+        * @param $sock Resource: socket to read from
         * @param $ret Array: returned values
         *
         * @access private
index 7bac319..73281c8 100644 (file)
@@ -4,6 +4,12 @@
  * A wrapper class for the pure-PHP memcached client, exposing a BagOStuff interface.
  */
 class MemcachedPhpBagOStuff extends BagOStuff {
+
+       /**
+        * @var MemCachedClientforWiki
+        */
+       protected $client;
+
        /**
         * Constructor.
         *
index bed2e12..7d87a24 100644 (file)
@@ -6,7 +6,17 @@
  * @ingroup Cache
  */
 class SqlBagOStuff extends BagOStuff {
-       var $lb, $db, $serverInfo;
+
+       /**
+        * @var LoadBalancer
+        */
+       var $lb;
+
+       /**
+        * @var DatabaseBase
+        */
+       var $db;
+       var $serverInfo;
        var $lastExpireAll = 0;
 
        /**
@@ -21,6 +31,9 @@ class SqlBagOStuff extends BagOStuff {
                }
        }
 
+       /**
+        * @return DatabaseBase
+        */
        protected function getDB() {
                if ( !isset( $this->db ) ) {
                        # If server connection info was given, use that