[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorPonderApplication extends PhabricatorApplication { 4 5 public function getBaseURI() { 6 return '/ponder/'; 7 } 8 9 public function getName() { 10 return pht('Ponder'); 11 } 12 13 public function getShortDescription() { 14 return pht('Questions and Answers'); 15 } 16 17 public function getIconName() { 18 return 'ponder'; 19 } 20 21 public function getFactObjectsForAnalysis() { 22 return array( 23 new PonderQuestion(), 24 ); 25 } 26 27 public function getTitleGlyph() { 28 return "\xE2\x97\xB3"; 29 } 30 31 public function loadStatus(PhabricatorUser $user) { 32 // replace with "x new unanswered questions" or some such 33 $status = array(); 34 35 return $status; 36 } 37 38 public function getRemarkupRules() { 39 return array( 40 new PonderRemarkupRule(), 41 ); 42 } 43 44 public function isPrototype() { 45 return true; 46 } 47 48 public function getRoutes() { 49 return array( 50 '/Q(?P<id>[1-9]\d*)' => 'PonderQuestionViewController', 51 '/ponder/' => array( 52 '(?:query/(?P<queryKey>[^/]+)/)?' => 'PonderQuestionListController', 53 'answer/add/' => 'PonderAnswerSaveController', 54 'answer/edit/(?P<id>\d+)/' => 'PonderAnswerEditController', 55 'answer/comment/(?P<id>\d+)/' => 'PonderAnswerCommentController', 56 'answer/history/(?P<id>\d+)/' => 'PonderAnswerHistoryController', 57 'question/edit/(?:(?P<id>\d+)/)?' => 'PonderQuestionEditController', 58 'question/comment/(?P<id>\d+)/' => 'PonderQuestionCommentController', 59 'question/history/(?P<id>\d+)/' => 'PonderQuestionHistoryController', 60 'preview/' => 'PhabricatorMarkupPreviewController', 61 'question/(?P<status>open|close)/(?P<id>[1-9]\d*)/' 62 => 'PonderQuestionStatusController', 63 'vote/' => 'PonderVoteSaveController', 64 ), 65 ); 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 |