Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98144338
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
Fri, Jan 10, 06:33
Size
636 B
Mime Type
text/x-php
Expires
Sun, Jan 12, 06:33 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
23516008
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