@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 42 lines 809 B view raw
1<?php 2 3final class PhabricatorConfigSiteModule extends PhabricatorConfigModule { 4 5 public function getModuleKey() { 6 return 'site'; 7 } 8 9 public function getModuleName() { 10 return pht('Sites'); 11 } 12 13 public function renderModuleStatus(AphrontRequest $request) { 14 $viewer = $request->getViewer(); 15 16 $sites = AphrontSite::getAllSites(); 17 18 $rows = array(); 19 foreach ($sites as $key => $site) { 20 $rows[] = array( 21 $site->getPriority(), 22 $key, 23 $site->getDescription(), 24 ); 25 } 26 27 return id(new AphrontTableView($rows)) 28 ->setHeaders( 29 array( 30 pht('Priority'), 31 pht('Class'), 32 pht('Description'), 33 )) 34 ->setColumnClasses( 35 array( 36 null, 37 'pri', 38 'wide', 39 )); 40 } 41 42}