Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F538803
PhabricatorFileAttachmentDestructionEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
543 B
Referenced Files
None
Subscribers
None
PhabricatorFileAttachmentDestructionEngineExtension.php
View Options
<?php
final
class
PhabricatorFileAttachmentDestructionEngineExtension
extends
PhabricatorDestructionEngineExtension
{
const
EXTENSIONKEY
=
'file.attachments'
;
public
function
getExtensionName
()
{
return
pht
(
'File Attachments'
);
}
public
function
destroyObject
(
PhabricatorDestructionEngine
$engine
,
$object
)
{
$attachments
=
id
(
new
PhabricatorFileAttachment
())->
loadAllWhere
(
'objectPHID = %s'
,
$object
->
getPHID
());
foreach
(
$attachments
as
$attachment
)
{
$attachment
->
delete
();
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 8:56 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
99769
Default Alt Text
PhabricatorFileAttachmentDestructionEngineExtension.php (543 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment