2013-03-30 17:32:29 +01:00
|
|
|
<?php
|
|
|
|
|
2014-07-23 02:03:09 +02:00
|
|
|
final class PhabricatorPhrequentApplication extends PhabricatorApplication {
|
2013-03-30 17:32:29 +01:00
|
|
|
|
2014-07-23 15:52:50 +02:00
|
|
|
public function getName() {
|
|
|
|
return pht('Phrequent');
|
|
|
|
}
|
|
|
|
|
2013-03-30 17:32:29 +01:00
|
|
|
public function getShortDescription() {
|
2014-05-29 21:17:54 +02:00
|
|
|
return pht('Track Time Spent');
|
2013-03-30 17:32:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/phrequent/';
|
|
|
|
}
|
|
|
|
|
2014-09-18 03:25:57 +02:00
|
|
|
public function isPrototype() {
|
2013-03-30 17:32:29 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-01-28 17:40:22 +01:00
|
|
|
public function getIcon() {
|
2015-01-25 08:41:43 +01:00
|
|
|
return 'fa-clock-o';
|
|
|
|
}
|
|
|
|
|
2013-03-30 17:32:29 +01:00
|
|
|
public function getApplicationGroup() {
|
2014-05-29 21:17:54 +02:00
|
|
|
return self::GROUP_UTILITIES;
|
2013-03-30 17:32:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationOrder() {
|
|
|
|
return 0.110;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getEventListeners() {
|
|
|
|
return array(
|
|
|
|
new PhrequentUIEventListener(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/phrequent/' => array(
|
2013-10-01 22:04:47 +02:00
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'PhrequentListController',
|
2013-03-30 17:32:29 +01:00
|
|
|
'track/(?P<verb>[a-z]+)/(?P<phid>[^/]+)/'
|
2014-10-07 15:01:04 +02:00
|
|
|
=> 'PhrequentTrackController',
|
2013-03-30 17:32:29 +01:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|