Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99053266
PhabricatorMailPropertiesDestructionEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 18, 18:17
Size
636 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 18:17 (2 d)
Engine
blob
Format
Raw Data
Handle
23698070
Attached To
rPH Phabricator
PhabricatorMailPropertiesDestructionEngineExtension.php
View Options
<?php
final
class
PhabricatorMailPropertiesDestructionEngineExtension
extends
PhabricatorDestructionEngineExtension
{
const
EXTENSIONKEY
=
'mail.properties'
;
public
function
getExtensionName
()
{
return
pht
(
'Mail Properties'
);
}
public
function
destroyObject
(
PhabricatorDestructionEngine
$engine
,
$object
)
{
$object_phid
=
$object
->
getPHID
();
$viewer
=
$engine
->
getViewer
();
$properties
=
id
(
new
PhabricatorMetaMTAMailPropertiesQuery
())
->
setViewer
(
$viewer
)
->
withObjectPHIDs
(
array
(
$object_phid
))
->
executeOne
();
if
(
$properties
)
{
$properties
->
delete
();
}
}
}
Event Timeline
Log In to Comment