From: Alexander Ebert Date: Tue, 11 Oct 2011 16:37:55 +0000 (+0200) Subject: Added missing method X-Git-Tag: 2.0.0_Beta_1~1715 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5f256c0b81d92db92bc9f49a82a54894968b8865;p=GitHub%2FWoltLab%2FWCF.git Added missing method --- diff --git a/wcfsetup/install/files/lib/data/package/Package.class.php b/wcfsetup/install/files/lib/data/package/Package.class.php index 8cbf165b9c..0eea3bdd5e 100644 --- a/wcfsetup/install/files/lib/data/package/Package.class.php +++ b/wcfsetup/install/files/lib/data/package/Package.class.php @@ -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; + } }