Index: trunk/phase3/includes/objectcache/MemcachedPhpBagOStuff.php |
— | — | @@ -4,7 +4,13 @@ |
5 | 5 | * A wrapper class for the pure-PHP memcached client, exposing a BagOStuff interface. |
6 | 6 | */ |
7 | 7 | class MemcachedPhpBagOStuff extends BagOStuff { |
| 8 | + |
8 | 9 | /** |
| 10 | + * @var MemCachedClientforWiki |
| 11 | + */ |
| 12 | + protected $client; |
| 13 | + |
| 14 | + /** |
9 | 15 | * Constructor. |
10 | 16 | * |
11 | 17 | * Available parameters are: |
Index: trunk/phase3/includes/objectcache/SqlBagOStuff.php |
— | — | @@ -6,7 +6,17 @@ |
7 | 7 | * @ingroup Cache |
8 | 8 | */ |
9 | 9 | class SqlBagOStuff extends BagOStuff { |
10 | | - var $lb, $db, $serverInfo; |
| 10 | + |
| 11 | + /** |
| 12 | + * @var LoadBalancer |
| 13 | + */ |
| 14 | + var $lb; |
| 15 | + |
| 16 | + /** |
| 17 | + * @var DatabaseBase |
| 18 | + */ |
| 19 | + var $db; |
| 20 | + var $serverInfo; |
11 | 21 | var $lastExpireAll = 0; |
12 | 22 | |
13 | 23 | /** |
— | — | @@ -21,6 +31,9 @@ |
22 | 32 | } |
23 | 33 | } |
24 | 34 | |
| 35 | + /** |
| 36 | + * @return DatabaseBase |
| 37 | + */ |
25 | 38 | protected function getDB() { |
26 | 39 | if ( !isset( $this->db ) ) { |
27 | 40 | # If server connection info was given, use that |
Index: trunk/phase3/includes/objectcache/MemcachedClient.php |
— | — | @@ -554,7 +554,7 @@ |
555 | 555 | * with a \n. This is with the PHP flag auto_detect_line_endings set |
556 | 556 | * to falase (the default). |
557 | 557 | * |
558 | | - * @param $sock Ressource: socket to send command on |
| 558 | + * @param $sock Resource: socket to send command on |
559 | 559 | * @param $cmd String: command to run |
560 | 560 | * |
561 | 561 | * @return Array: output array |
— | — | @@ -857,7 +857,7 @@ |
858 | 858 | /** |
859 | 859 | * Load items into $ret from $sock |
860 | 860 | * |
861 | | - * @param $sock Ressource: socket to read from |
| 861 | + * @param $sock Resource: socket to read from |
862 | 862 | * @param $ret Array: returned values |
863 | 863 | * |
864 | 864 | * @access private |