3 final class NuanceQueueEditEngine
4 extends PhabricatorEditEngine
{
6 const ENGINECONST
= 'nuance.queue';
8 public function isEngineConfigurable() {
12 public function getEngineName() {
13 return pht('Nuance Queues');
16 public function getSummaryHeader() {
17 return pht('Edit Nuance Queue Configurations');
20 public function getSummaryText() {
21 return pht('This engine is used to edit Nuance queues.');
24 public function getEngineApplicationClass() {
25 return 'PhabricatorNuanceApplication';
28 protected function newEditableObject() {
29 return NuanceQueue
::initializeNewQueue();
32 protected function newObjectQuery() {
33 return new NuanceQueueQuery();
36 protected function getObjectCreateTitleText($object) {
37 return pht('Create Queue');
40 protected function getObjectCreateButtonText($object) {
41 return pht('Create Queue');
44 protected function getObjectEditTitleText($object) {
45 return pht('Edit Queue: %s', $object->getName());
48 protected function getObjectEditShortText($object) {
49 return pht('Edit Queue');
52 protected function getObjectCreateShortText() {
53 return pht('Create Queue');
56 protected function getObjectName() {
60 protected function getEditorURI() {
61 return '/nuance/queue/edit/';
64 protected function getObjectCreateCancelURI($object) {
65 return '/nuance/queue/';
68 protected function getObjectViewURI($object) {
69 return $object->getURI();
72 protected function buildCustomEditFields($object) {
74 id(new PhabricatorTextEditField())
76 ->setLabel(pht('Name'))
77 ->setDescription(pht('Name of the queue.'))
78 ->setTransactionType(NuanceQueueNameTransaction
::TRANSACTIONTYPE
)
80 ->setValue($object->getName()),