mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-03 04:02:43 +01:00
cff9843859
Summary: Implement basic token leader board. No pagination yet. Test Plan: Assign some tasks tokens and check that they are displayed properly. Reviewers: epriestley CC: aran, Korvin, chad Maniphest Tasks: T2689 Differential Revision: https://secure.phabricator.com/D5379
50 lines
989 B
PHP
50 lines
989 B
PHP
<?php
|
|
|
|
final class PhabricatorApplicationTokens extends PhabricatorApplication {
|
|
|
|
public function getName() {
|
|
return pht('Tokens');
|
|
}
|
|
|
|
public function isBeta() {
|
|
return true;
|
|
}
|
|
|
|
public function getBaseURI() {
|
|
return '/token/';
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'token';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x99\xA6";
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Acquire Trinkets');
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/token/' => array(
|
|
'' => 'PhabricatorTokenGivenController',
|
|
'given/' => 'PhabricatorTokenGivenController',
|
|
'give/(?<phid>[^/]+)/' => 'PhabricatorTokenGiveController',
|
|
'leaders/' => 'PhabricatorTokenLeaderController',
|
|
),
|
|
);
|
|
}
|
|
|
|
public function getEventListeners() {
|
|
return array(
|
|
new PhabricatorTokenUIEventListener(),
|
|
);
|
|
}
|
|
|
|
}
|