From: Alexander Ebert Date: Wed, 17 Oct 2012 16:03:09 +0000 (+0200) Subject: Added method to return all active applications X-Git-Tag: 2.0.0_Beta_1~858 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebbfe04365c87f3e361dad9e1abe9d2971e7a25d;p=GitHub%2FWoltLab%2FWCF.git Added method to return all active applications --- diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index 467464219d..66f8f3c411 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -111,6 +111,18 @@ class ApplicationHandler extends SingletonFactory { return $applications; } + /** + * Returns a list of all active applications. + * + * @return array + */ + public function getApplications() { + $applications = $this->getDependentApplications(); + $applications[] = $this->getActiveApplication(); + + return $applications; + } + /** * Returns abbreviation for a given package id or null if application is unknown. *