mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-31 06:28:13 +02:00
Summary: Ref T8434. Throw these together. Test Plan: Created a new Queue. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T8434 Differential Revision: https://secure.phabricator.com/D13163
80 lines
2.3 KiB
PHP
80 lines
2.3 KiB
PHP
<?php
|
|
|
|
final class PhabricatorNuanceApplication extends PhabricatorApplication {
|
|
|
|
public function getName() {
|
|
return pht('Nuance');
|
|
}
|
|
|
|
public function getFontIcon() {
|
|
return 'fa-fax';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x98\x8E";
|
|
}
|
|
|
|
public function isPrototype() {
|
|
return true;
|
|
}
|
|
|
|
public function isLaunchable() {
|
|
// Try to hide this even more for now.
|
|
return false;
|
|
}
|
|
|
|
public function canUninstall() {
|
|
return true;
|
|
}
|
|
|
|
public function getBaseURI() {
|
|
return '/nuance/';
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('High-Volume Task Queues');
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/nuance/' => array(
|
|
'item/' => array(
|
|
'view/(?P<id>[1-9]\d*)/' => 'NuanceItemViewController',
|
|
'edit/(?P<id>[1-9]\d*)/' => 'NuanceItemEditController',
|
|
'new/' => 'NuanceItemEditController',
|
|
),
|
|
'source/' => array(
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'NuanceSourceListController',
|
|
'view/(?P<id>[1-9]\d*)/' => 'NuanceSourceViewController',
|
|
'edit/(?P<id>[1-9]\d*)/' => 'NuanceSourceEditController',
|
|
'new/(?P<type>[^/]+)/' => 'NuanceSourceEditController',
|
|
'create/' => 'NuanceSourceCreateController',
|
|
),
|
|
'queue/' => array(
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'NuanceQueueListController',
|
|
'view/(?P<id>[1-9]\d*)/' => 'NuanceQueueViewController',
|
|
'edit/(?P<id>[1-9]\d*)/' => 'NuanceQueueEditController',
|
|
'new/' => 'NuanceQueueEditController',
|
|
),
|
|
'requestor/' => array(
|
|
'view/(?P<id>[1-9]\d*)/' => 'NuanceRequestorViewController',
|
|
'edit/(?P<id>[1-9]\d*)/' => 'NuanceRequestorEditController',
|
|
'new/' => 'NuanceRequestorEditController',
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
protected function getCustomCapabilities() {
|
|
return array(
|
|
NuanceSourceDefaultViewCapability::CAPABILITY => array(
|
|
'caption' => pht('Default view policy for newly created sources.'),
|
|
),
|
|
NuanceSourceDefaultEditCapability::CAPABILITY => array(
|
|
'caption' => pht('Default edit policy for newly created sources.'),
|
|
),
|
|
NuanceSourceManageCapability::CAPABILITY => array(),
|
|
);
|
|
}
|
|
|
|
}
|