[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorLegalpadApplication extends PhabricatorApplication { 4 5 public function getBaseURI() { 6 return '/legalpad/'; 7 } 8 9 public function getName() { 10 return pht('Legalpad'); 11 } 12 13 public function getShortDescription() { 14 return pht('Agreements and Signatures'); 15 } 16 17 public function getIconName() { 18 return 'legalpad'; 19 } 20 21 public function getTitleGlyph() { 22 return "\xC2\xA9"; 23 } 24 25 public function getApplicationGroup() { 26 return self::GROUP_UTILITIES; 27 } 28 29 public function getRemarkupRules() { 30 return array( 31 new LegalpadDocumentRemarkupRule(), 32 ); 33 } 34 35 public function getHelpURI() { 36 return PhabricatorEnv::getDoclink('Legalpad User Guide'); 37 } 38 39 public function getOverview() { 40 return pht( 41 '**Legalpad** is a simple application for tracking signatures and '. 42 'legal agreements. At the moment, it is primarily intended to help '. 43 'open source projects keep track of Contributor License Agreements.'); 44 } 45 46 public function getRoutes() { 47 return array( 48 '/L(?P<id>\d+)' => 'LegalpadDocumentSignController', 49 '/legalpad/' => array( 50 '' => 'LegalpadDocumentListController', 51 '(?:query/(?P<queryKey>[^/]+)/)?' => 'LegalpadDocumentListController', 52 'create/' => 'LegalpadDocumentEditController', 53 'edit/(?P<id>\d+)/' => 'LegalpadDocumentEditController', 54 'comment/(?P<id>\d+)/' => 'LegalpadDocumentCommentController', 55 'view/(?P<id>\d+)/' => 'LegalpadDocumentManageController', 56 'done/' => 'LegalpadDocumentDoneController', 57 'verify/(?P<code>[^/]+)/' 58 => 'LegalpadDocumentSignatureVerificationController', 59 'signatures/(?:(?P<id>\d+)/)?(?:query/(?P<queryKey>[^/]+)/)?' 60 => 'LegalpadDocumentSignatureListController', 61 'addsignature/(?P<id>\d+)/' => 'LegalpadDocumentSignatureAddController', 62 'signature/(?P<id>\d+)/' => 'LegalpadDocumentSignatureViewController', 63 'document/' => array( 64 'preview/' => 'PhabricatorMarkupPreviewController', 65 ), 66 ), 67 ); 68 } 69 70 protected function getCustomCapabilities() { 71 return array( 72 LegalpadCreateDocumentsCapability::CAPABILITY => array(), 73 LegalpadDefaultViewCapability::CAPABILITY => array(), 74 LegalpadDefaultEditCapability::CAPABILITY => array(), 75 ); 76 } 77 78 }
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 |