[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorCalendarApplication extends PhabricatorApplication { 4 5 public function getName() { 6 return pht('Calendar'); 7 } 8 9 public function getShortDescription() { 10 return pht('Upcoming Events'); 11 } 12 13 public function getFlavorText() { 14 return pht('Never miss an episode ever again.'); 15 } 16 17 public function getBaseURI() { 18 return '/calendar/'; 19 } 20 21 public function getIconName() { 22 return 'calendar'; 23 } 24 25 public function getTitleGlyph() { 26 // Unicode has a calendar character but it's in some distant code plane, 27 // use "keyboard" since it looks vaguely similar. 28 return "\xE2\x8C\xA8"; 29 } 30 31 public function isPrototype() { 32 return true; 33 } 34 35 public function getRoutes() { 36 return array( 37 '/calendar/' => array( 38 '' => 'PhabricatorCalendarViewController', 39 'all/' => 'PhabricatorCalendarBrowseController', 40 'event/' => array( 41 '(?:query/(?P<queryKey>[^/]+)/)?' 42 => 'PhabricatorCalendarEventListController', 43 'create/' 44 => 'PhabricatorCalendarEventEditController', 45 'edit/(?P<id>[1-9]\d*)/' 46 => 'PhabricatorCalendarEventEditController', 47 'delete/(?P<id>[1-9]\d*)/' 48 => 'PhabricatorCalendarEventDeleteController', 49 'view/(?P<id>[1-9]\d*)/' 50 => 'PhabricatorCalendarEventViewController', 51 ), 52 ), 53 ); 54 } 55 56 public function getQuickCreateItems(PhabricatorUser $viewer) { 57 $items = array(); 58 59 $item = id(new PHUIListItemView()) 60 ->setName(pht('Calendar Event')) 61 ->setIcon('fa-calendar') 62 ->setHref($this->getBaseURI().'event/create/'); 63 $items[] = $item; 64 65 return $items; 66 } 67 68 }
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 |