Path: blob/master/src/applications/guides/module/PhabricatorGuideModule.php
12242 views
<?php12abstract class PhabricatorGuideModule extends Phobject {34abstract public function getModuleKey();5abstract public function getModuleName();6abstract public function getModulePosition();7abstract public function getIsModuleEnabled();8abstract public function renderModuleStatus(AphrontRequest $request);910final public static function getAllModules() {11return id(new PhutilClassMapQuery())12->setAncestorClass(__CLASS__)13->setUniqueMethod('getModuleKey')14->setSortMethod('getModulePosition')15->execute();16}1718final public static function getEnabledModules() {19return id(new PhutilClassMapQuery())20->setAncestorClass(__CLASS__)21->setUniqueMethod('getModuleKey')22->setSortMethod('getModulePosition')23->setFilterMethod('getIsModuleEnabled')24->execute();25}2627}282930