Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / nuance / editor / NuanceQueueEditEngine.php
blob12f5c7b5172c67f07d9f479ae3d6047a59ceecf8
1 <?php
3 final class NuanceQueueEditEngine
4 extends PhabricatorEditEngine {
6 const ENGINECONST = 'nuance.queue';
8 public function isEngineConfigurable() {
9 return false;
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() {
57 return pht('Queue');
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) {
73 return array(
74 id(new PhabricatorTextEditField())
75 ->setKey('name')
76 ->setLabel(pht('Name'))
77 ->setDescription(pht('Name of the queue.'))
78 ->setTransactionType(NuanceQueueNameTransaction::TRANSACTIONTYPE)
79 ->setIsRequired(true)
80 ->setValue($object->getName()),