Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13977738
D13143.id31773.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13143.id31773.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
@@ -6273,6 +6273,7 @@
'PhameDAO',
'PhabricatorPolicyInterface',
'PhabricatorMarkupInterface',
+ 'PhabricatorApplicationTransactionInterface',
),
'PhameBlogDeleteController' => 'PhameController',
'PhameBlogEditController' => 'PhameController',
diff --git a/src/applications/phame/storage/PhameBlog.php b/src/applications/phame/storage/PhameBlog.php
--- a/src/applications/phame/storage/PhameBlog.php
+++ b/src/applications/phame/storage/PhameBlog.php
@@ -1,7 +1,10 @@
<?php
final class PhameBlog extends PhameDAO
- implements PhabricatorPolicyInterface, PhabricatorMarkupInterface {
+ implements
+ PhabricatorPolicyInterface,
+ PhabricatorMarkupInterface,
+ PhabricatorApplicationTransactionInterface {
const MARKUP_FIELD_DESCRIPTION = 'markup:description';
@@ -302,4 +305,26 @@
return (bool)$this->getPHID();
}
+
+/* -( PhabricatorApplicationTransactionInterface )------------------------- */
+
+
+ public function getApplicationTransactionEditor() {
+ return new PhameBlogEditor();
+ }
+
+ public function getApplicationTransactionObject() {
+ return $this;
+ }
+
+ public function getApplicationTransactionTemplate() {
+ return new PhameBlogTransaction();
+ }
+
+ public function willRenderTimeline(
+ PhabricatorApplicationTransactionView $timeline,
+ AphrontRequest $request) {
+ return $timeline;
+ }
+
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 19 2024, 7:49 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6733658
Default Alt Text
D13143.id31773.diff (1 KB)
Attached To
Mode
D13143: Make PhameBlog implement PhabricatorApplicationTransactionInterface
Attached
Detach File
Event Timeline
Log In to Comment