mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
Support bin/remove destroy Fnnn
for files
Summary: Straightforward (this is the one object type we do let you delete from the web UI) implemetation of `PhabricatorDestructibleInterface`. Test Plan: Used `bin/remove destroy` to destory several files. Used `--trace` to verify they wiped file data. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D10300
This commit is contained in:
parent
df7fb09845
commit
e8ece70ee0
1 changed files with 13 additions and 1 deletions
|
@ -21,7 +21,8 @@ final class PhabricatorFile extends PhabricatorFileDAO
|
|||
PhabricatorTokenReceiverInterface,
|
||||
PhabricatorSubscribableInterface,
|
||||
PhabricatorFlaggableInterface,
|
||||
PhabricatorPolicyInterface {
|
||||
PhabricatorPolicyInterface,
|
||||
PhabricatorDestructibleInterface {
|
||||
|
||||
const ONETIME_TEMPORARY_TOKEN_TYPE = 'file:onetime';
|
||||
const STORAGE_FORMAT_RAW = 'raw';
|
||||
|
@ -1045,4 +1046,15 @@ final class PhabricatorFile extends PhabricatorFileDAO
|
|||
}
|
||||
|
||||
|
||||
/* -( PhabricatorDestructibleInterface )----------------------------------- */
|
||||
|
||||
|
||||
public function destroyObjectPermanently(
|
||||
PhabricatorDestructionEngine $engine) {
|
||||
|
||||
$this->openTransaction();
|
||||
$this->delete();
|
||||
$this->saveTransaction();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue