Added method to return all active applications
authorAlexander Ebert <ebert@woltlab.com>
Wed, 17 Oct 2012 16:03:09 +0000 (18:03 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 17 Oct 2012 16:03:09 +0000 (18:03 +0200)
wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php

index 467464219d2fba49ac58ff808061b1ac0ff4b079..66f8f3c4119d726606ace4466551abce643a57f1 100644 (file)
@@ -111,6 +111,18 @@ class ApplicationHandler extends SingletonFactory {
                return $applications;
        }
        
+       /**
+        * Returns a list of all active applications.
+        * 
+        * @return      array<wcf\data\application\Application>
+        */
+       public function getApplications() {
+               $applications = $this->getDependentApplications();
+               $applications[] = $this->getActiveApplication();
+               
+               return $applications;
+       }
+       
        /**
         * Returns abbreviation for a given package id or null if application is unknown.
         *