Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / guides / module / PhabricatorGuideModule.php
blobdcac14c0f5f1dbeac218538f1404d7ea8758be38
1 <?php
3 abstract class PhabricatorGuideModule extends Phobject {
5 abstract public function getModuleKey();
6 abstract public function getModuleName();
7 abstract public function getModulePosition();
8 abstract public function getIsModuleEnabled();
9 abstract public function renderModuleStatus(AphrontRequest $request);
11 final public static function getAllModules() {
12 return id(new PhutilClassMapQuery())
13 ->setAncestorClass(__CLASS__)
14 ->setUniqueMethod('getModuleKey')
15 ->setSortMethod('getModulePosition')
16 ->execute();
19 final public static function getEnabledModules() {
20 return id(new PhutilClassMapQuery())
21 ->setAncestorClass(__CLASS__)
22 ->setUniqueMethod('getModuleKey')
23 ->setSortMethod('getModulePosition')
24 ->setFilterMethod('getIsModuleEnabled')
25 ->execute();