From ebbfe04365c87f3e361dad9e1abe9d2971e7a25d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 17 Oct 2012 18:03:09 +0200 Subject: [PATCH] Added method to return all active applications --- .../system/application/ApplicationHandler.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. * -- 2.20.1