X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/mediawiki.git/blobdiff_plain/74c929b24b048c9f1e31e17db757ae4195cd7673..96940cda03e7d46e1ce0b13d087122e157391a04:/includes/SiteConfiguration.php diff --git a/includes/SiteConfiguration.php b/includes/SiteConfiguration.php index 2ed28139..b6d83670 100644 --- a/includes/SiteConfiguration.php +++ b/includes/SiteConfiguration.php @@ -36,6 +36,14 @@ class SiteConfiguration { * Array of domains that are local and can be handled by the same server */ public $localVHosts = array(); + + /** + * Optional callback to load full configuration data. + */ + public $fullLoadCallback = null; + + /** Whether or not all data has been loaded */ + public $fullLoadDone = false; /** * A callback function that returns an array with the following keys (all @@ -387,5 +395,12 @@ class SiteConfiguration { return $out; } + + public function loadFullData() { + if ($this->fullLoadCallback && !$this->fullLoadDone) { + call_user_func( $this->fullLoadCallback, $this ); + $this->fullLoadDone = true; + } + } } -} +} // End of multiple inclusion guard