Page MenuHomePhabricator

D9976.id23971.diff
No OneTemporary

D9976.id23971.diff

diff --git a/src/applications/phriction/storage/PhrictionDocument.php b/src/applications/phriction/storage/PhrictionDocument.php
--- a/src/applications/phriction/storage/PhrictionDocument.php
+++ b/src/applications/phriction/storage/PhrictionDocument.php
@@ -5,7 +5,8 @@
PhabricatorPolicyInterface,
PhabricatorSubscribableInterface,
PhabricatorFlaggableInterface,
- PhabricatorTokenReceiverInterface {
+ PhabricatorTokenReceiverInterface,
+ PhabricatorDestructableInterface {
protected $slug;
protected $depth;
@@ -180,4 +181,22 @@
public function getUsersToNotifyOfTokenGiven() {
return PhabricatorSubscribersQuery::loadSubscribersForPHID($this->phid);
}
+
+
+/* -( PhabricatorDestructableInterface )----------------------------------- */
+
+
+ public function destroyObjectPermanently(
+ PhabricatorDestructionEngine $engine) {
+
+ $this->openTransaction();
+
+ $this->delete();
+
+ $content = $this->getContent();
+ $content->delete();
+
+ $this->saveTransaction();
+ }
+
}

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 4:22 AM (5 d, 20 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7709370
Default Alt Text
D9976.id23971.diff (1 KB)

Event Timeline