X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FLinkBatch.php;h=1a20ab4f4f959686fefdf6210abd792c7be78225;hb=f90977bcc58fd88a806a50ca2d3faad0ee2dab2e;hp=f47107c68f929d5d093458ef39b8a55a0f3e283d;hpb=4fe59cd7c2d24ccee9a227d945f5a0791db2fb42;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/LinkBatch.php b/includes/cache/LinkBatch.php index f47107c68f..1a20ab4f4f 100644 --- a/includes/cache/LinkBatch.php +++ b/includes/cache/LinkBatch.php @@ -31,7 +31,7 @@ class LinkBatch { /** * 2-d array, first index namespace, second index dbkey, value arbitrary */ - var $data = array(); + public $data = array(); /** * For debugging which method is using this class. @@ -98,7 +98,7 @@ class LinkBatch { * @return bool */ public function isEmpty() { - return ($this->getSize() == 0); + return $this->getSize() == 0; } /** @@ -117,6 +117,7 @@ class LinkBatch { */ public function execute() { $linkCache = LinkCache::singleton(); + return $this->executeInto( $linkCache ); } @@ -133,6 +134,7 @@ class LinkBatch { $this->doGenderQuery(); $ids = $this->addResultToCache( $cache, $res ); wfProfileOut( __METHOD__ ); + return $ids; } @@ -170,6 +172,7 @@ class LinkBatch { $ids[$title->getPrefixedDBkey()] = 0; } } + return $ids; } @@ -197,6 +200,7 @@ class LinkBatch { } $res = $dbr->select( $table, $fields, $conds, $caller ); wfProfileOut( __METHOD__ ); + return $res; } @@ -217,6 +221,7 @@ class LinkBatch { $genderCache = GenderCache::singleton(); $genderCache->doLinkBatch( $this->data, $this->caller ); + return true; }