2013-02-15 16:47:14 +01:00
|
|
|
<?php
|
|
|
|
|
2014-07-23 02:03:09 +02:00
|
|
|
final class PhabricatorTokensApplication extends PhabricatorApplication {
|
2013-02-15 16:47:14 +01:00
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return pht('Tokens');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/token/';
|
|
|
|
}
|
|
|
|
|
2015-01-25 08:41:43 +01:00
|
|
|
public function getFontIcon() {
|
2015-07-22 22:37:20 +02:00
|
|
|
return 'fa-thumbs-up';
|
2015-01-25 08:41:43 +01:00
|
|
|
}
|
|
|
|
|
2013-02-15 16:47:14 +01:00
|
|
|
public function getTitleGlyph() {
|
|
|
|
return "\xE2\x99\xA6";
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getShortDescription() {
|
2014-05-29 21:17:54 +02:00
|
|
|
return pht('Award and Acquire Trinkets');
|
2013-02-15 16:47:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationGroup() {
|
|
|
|
return self::GROUP_UTILITIES;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/token/' => array(
|
|
|
|
'' => 'PhabricatorTokenGivenController',
|
|
|
|
'given/' => 'PhabricatorTokenGivenController',
|
|
|
|
'give/(?<phid>[^/]+)/' => 'PhabricatorTokenGiveController',
|
2013-03-22 00:04:29 +01:00
|
|
|
'leaders/' => 'PhabricatorTokenLeaderController',
|
2013-02-15 16:47:14 +01:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getEventListeners() {
|
|
|
|
return array(
|
|
|
|
new PhabricatorTokenUIEventListener(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|