Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14716482
D8178.id18500.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D8178.id18500.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -842,6 +842,7 @@
'LegalpadDocumentEditor' => 'applications/legalpad/editor/LegalpadDocumentEditor.php',
'LegalpadDocumentListController' => 'applications/legalpad/controller/LegalpadDocumentListController.php',
'LegalpadDocumentQuery' => 'applications/legalpad/query/LegalpadDocumentQuery.php',
+ 'LegalpadDocumentRemarkupRule' => 'applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php',
'LegalpadDocumentSearchEngine' => 'applications/legalpad/query/LegalpadDocumentSearchEngine.php',
'LegalpadDocumentSignController' => 'applications/legalpad/controller/LegalpadDocumentSignController.php',
'LegalpadDocumentSignature' => 'applications/legalpad/storage/LegalpadDocumentSignature.php',
@@ -3438,6 +3439,7 @@
1 => 'PhabricatorApplicationSearchResultsControllerInterface',
),
'LegalpadDocumentQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
+ 'LegalpadDocumentRemarkupRule' => 'PhabricatorRemarkupRuleObject',
'LegalpadDocumentSearchEngine' => 'PhabricatorApplicationSearchEngine',
'LegalpadDocumentSignController' => 'LegalpadController',
'LegalpadDocumentSignature' =>
diff --git a/src/applications/legalpad/application/PhabricatorApplicationLegalpad.php b/src/applications/legalpad/application/PhabricatorApplicationLegalpad.php
--- a/src/applications/legalpad/application/PhabricatorApplicationLegalpad.php
+++ b/src/applications/legalpad/application/PhabricatorApplicationLegalpad.php
@@ -1,8 +1,5 @@
<?php
-/**
- * @group legalpad
- */
final class PhabricatorApplicationLegalpad extends PhabricatorApplication {
public function getBaseURI() {
@@ -33,6 +30,12 @@
return true;
}
+ public function getRemarkupRules() {
+ return array(
+ new LegalpadDocumentRemarkupRule(),
+ );
+ }
+
public function getRoutes() {
return array(
'/L(?P<id>\d+)' => 'LegalpadDocumentSignController',
diff --git a/src/applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php b/src/applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php
new file mode 100644
--- /dev/null
+++ b/src/applications/legalpad/remarkup/LegalpadDocumentRemarkupRule.php
@@ -0,0 +1,19 @@
+<?php
+
+final class LegalpadDocumentRemarkupRule
+ extends PhabricatorRemarkupRuleObject {
+
+ protected function getObjectNamePrefix() {
+ return 'L';
+ }
+
+ protected function loadObjects(array $ids) {
+ $viewer = $this->getEngine()->getConfig('viewer');
+
+ return id(new LegalpadDocumentQuery())
+ ->setViewer($viewer)
+ ->withIDs($ids)
+ ->execute();
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 18, 6:53 PM (19 h, 53 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7008220
Default Alt Text
D8178.id18500.diff (2 KB)
Attached To
Mode
D8178: Legalpad - remarkup LX to link to LX
Attached
Detach File
Event Timeline
Log In to Comment