r40381 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40380‎ | r40381 | r40382 >
Date:13:50, 3 September 2008
Author:demon
Status:old
Tags:
Comment:
+docs
Modified paths:
  • /trunk/phase3/includes/filerepo/RepoGroup.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/RepoGroup.php
@@ -176,6 +176,11 @@
177177 return $this->getRepo( 'local' );
178178 }
179179
 180+ /**
 181+ * Run a function across all foreign repos.
 182+ * @param $callback string Name of method to call
 183+ * @param $params array Optional params to pass to the function
 184+ */
180185 function forEachForeignRepo( $callback, $params = array() ) {
181186 foreach( $this->foreignRepos as $repo ) {
182187 $args = array_merge( array( $repo ), $params );
@@ -186,6 +191,10 @@
187192 return false;
188193 }
189194
 195+ /**
 196+ * Does the installation have foreign repos set up?
 197+ * @return bool
 198+ */
190199 function hasForeignRepos() {
191200 return !empty( $this->foreignRepos );
192201 }

Status & tagging log