From 4f8a1debbb69b58926c32ca4d5ce1e4e94ae942b Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 3 Sep 2008 13:50:37 +0000 Subject: [PATCH] +docs --- includes/filerepo/RepoGroup.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index 7cb837b373..265a8dc905 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -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 ); } -- 2.20.1