+docs
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 3 Sep 2008 13:50:37 +0000 (13:50 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 3 Sep 2008 13:50:37 +0000 (13:50 +0000)
includes/filerepo/RepoGroup.php

index 7cb837b..265a8dc 100644 (file)
@@ -176,6 +176,11 @@ class RepoGroup {
                return $this->getRepo( 'local' );
        }
 
+       /**
+        * Run a function across all foreign repos.
+        * @param $callback string Name of method to call
+        * @param $params array Optional params to pass to the function
+        */
        function forEachForeignRepo( $callback, $params = array() ) {
                foreach( $this->foreignRepos as $repo ) {
                        $args = array_merge( array( $repo ), $params );
@@ -186,6 +191,10 @@ class RepoGroup {
                return false;
        }
 
+       /**
+        * Does the installation have foreign repos set up?
+        * @return bool
+        */
        function hasForeignRepos() {
                return !empty( $this->foreignRepos );
        }