Differential D14402 Diff 34804 src/applications/config/module/PhabricatorConfigHTTPParameterTypesModule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/module/PhabricatorConfigHTTPParameterTypesModule.php
- This file was added.
| <?php | |||||
| final class PhabricatorConfigHTTPParameterTypesModule | |||||
| extends PhabricatorConfigModule { | |||||
| public function getModuleKey() { | |||||
| return 'httpparameter'; | |||||
| } | |||||
| public function getModuleName() { | |||||
| return pht('HTTP Parameter Types'); | |||||
| } | |||||
| public function renderModuleStatus(AphrontRequest $request) { | |||||
| $viewer = $request->getViewer(); | |||||
| $types = AphrontHTTPParameterType::getAllTypes(); | |||||
| $table = id(new PhabricatorHTTPParameterTypeTableView()) | |||||
| ->setHTTPParameterTypes($types); | |||||
| return id(new PHUIObjectBoxView()) | |||||
| ->setHeaderText(pht('HTTP Parameter Types')) | |||||
| ->setTable($table); | |||||
| } | |||||
| } | |||||