20 private $site =
false;
25 private $active_plugins;
27 private array $plugin_metadata = [];
41 $this->site = $entities->
get(1,
'site');
42 if (!$this->site && $installed) {
43 throw new InstallationException(
'Unable to handle this request. This site is not configured or the database is down.');
46 $this->active_plugins = $plugins->
find(
'active');
47 if (empty($this->active_plugins)) {
51 $this->plugin_metadata =
_elgg_services()->metadataCache->populateFromEntities($this->active_plugins);
69 return $this->active_plugins;
78 return $this->plugin_metadata;
getSite()
Get the site entity.
getPluginMetadata()
Get plugin metadata.
Updates the basic settings for the primary site object.
get(int $guid, string $type=null, string $subtype=null)
Loads and returns an entity object from a guid.
populate(EntityTable $entities, Plugins $plugins, bool $installed)
Populate the boot data.
Thrown when there is a major problem with the installation.
getActivePlugins()
Get active plugins.
Serializable collection of data used to boot Elgg.
_elgg_services()
Get the global service provider.
Persistent, installation-wide key-value storage.
find(string $status= 'active')
Returns an ordered list of plugins.
Entity table database service.