[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorPhrequentApplication extends PhabricatorApplication { 4 5 public function getName() { 6 return pht('Phrequent'); 7 } 8 9 public function getShortDescription() { 10 return pht('Track Time Spent'); 11 } 12 13 public function getBaseURI() { 14 return '/phrequent/'; 15 } 16 17 public function isPrototype() { 18 return true; 19 } 20 21 public function getIconName() { 22 return 'phrequent'; 23 } 24 25 public function getApplicationGroup() { 26 return self::GROUP_UTILITIES; 27 } 28 29 public function getApplicationOrder() { 30 return 0.110; 31 } 32 33 public function getEventListeners() { 34 return array( 35 new PhrequentUIEventListener(), 36 ); 37 } 38 39 public function getRoutes() { 40 return array( 41 '/phrequent/' => array( 42 '(?:query/(?P<queryKey>[^/]+)/)?' => 'PhrequentListController', 43 'track/(?P<verb>[a-z]+)/(?P<phid>[^/]+)/' 44 => 'PhrequentTrackController', 45 ), 46 ); 47 } 48 49 public function loadStatus(PhabricatorUser $user) { 50 $status = array(); 51 52 // Show number of objects that are currently 53 // being tracked for a user. 54 55 $count = PhrequentUserTimeQuery::getUserTotalObjectsTracked($user); 56 $type = PhabricatorApplicationStatusView::TYPE_NEEDS_ATTENTION; 57 $status[] = id(new PhabricatorApplicationStatusView()) 58 ->setType($type) 59 ->setText(pht('%d Object(s) Tracked', $count)) 60 ->setCount($count); 61 62 return $status; 63 } 64 65 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |