@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
1<?php
2
3final class PhabricatorApplicationEditEngine
4 extends PhabricatorEditEngine {
5
6 const ENGINECONST = 'application.application';
7
8 public function getEngineApplicationClass() {
9 return PhabricatorApplicationsApplication::class;
10 }
11
12 public function getEngineName() {
13 return pht('Applications');
14 }
15
16 public function getSummaryHeader() {
17 return pht('Configure Application Forms');
18 }
19
20 public function getSummaryText() {
21 return pht('Configure creation and editing forms in Applications.');
22 }
23
24 public function isEngineConfigurable() {
25 return false;
26 }
27
28 protected function newEditableObject() {
29 throw new PhutilMethodNotImplementedException();
30 }
31
32 protected function newObjectQuery() {
33 return new PhabricatorApplicationQuery();
34 }
35
36 protected function getObjectCreateTitleText($object) {
37 return pht('Create New Application');
38 }
39
40 protected function getObjectEditTitleText($object) {
41 return pht('Edit Application: %s', $object->getName());
42 }
43
44 protected function getObjectEditShortText($object) {
45 return $object->getName();
46 }
47
48 protected function getObjectCreateShortText() {
49 return pht('Create Application');
50 }
51
52 protected function getObjectName() {
53 return pht('Application');
54 }
55
56 protected function getObjectViewURI($object) {
57 return $object->getViewURI();
58 }
59
60 protected function buildCustomEditFields($object) {
61 return array();
62 }
63
64}