Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / harbormaster / stepgroup / HarbormasterBuildStepGroup.php
blob58068618360ef051149a3dbf3ac3706f68351d1b
1 <?php
3 abstract class HarbormasterBuildStepGroup extends Phobject {
5 abstract public function getGroupName();
6 abstract public function getGroupOrder();
8 public function isEnabled() {
9 return true;
12 public function shouldShowIfEmpty() {
13 return true;
16 final public function getGroupKey() {
17 return $this->getPhobjectClassConstant('GROUPKEY');
20 final public static function getAllGroups() {
21 return id(new PhutilClassMapQuery())
22 ->setAncestorClass(__CLASS__)
23 ->setUniqueMethod('getGroupKey')
24 ->setSortMethod('getGroupOrder')
25 ->execute();
28 final public static function getAllEnabledGroups() {
29 $groups = self::getAllGroups();
31 foreach ($groups as $key => $group) {
32 if (!$group->isEnabled()) {
33 unset($groups[$key]);
37 return $groups;