Added missing method
authorAlexander Ebert <ebert@woltlab.com>
Tue, 11 Oct 2011 16:37:55 +0000 (18:37 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 11 Oct 2011 16:37:55 +0000 (18:37 +0200)
wcfsetup/install/files/lib/data/package/Package.class.php

index 8cbf165b9c3788d5abba2daf2f495ffe1b18f2de..0eea3bdd5e6dc177192e0ae5fa40d8a4a26f8c6a 100644 (file)
@@ -567,4 +567,18 @@ class Package extends DatabaseObject {
                        self::rebuildPackageDependencies($row['packageID']);
                }
        }
+       
+       /**
+        * Returns a list of plugins for currently active application.
+        * 
+        * @todo        Care about plugins within dependencies, but are simple plugins just providing some crap.
+        * @return      wcf\data\package\PackageList
+        */
+       public static function getPluginList() {
+               $pluginList = new PackageList();
+               //$pluginList->getConditionBuilder()->add("package.packageID IN (?)", array(PackageDependencyHandler::getDependencies()));
+               $pluginList->getConditionBuilder()->add("package.standalone = ?", array(0));
+               
+               return $pluginList;
+       }
 }