Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92742032
PhabricatorNotificationDestructionEngineExtension.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, Nov 23, 08:19
Size
576 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 08:19 (2 d)
Engine
blob
Format
Raw Data
Handle
22494632
Attached To
rPH Phabricator
PhabricatorNotificationDestructionEngineExtension.php
View Options
<?php
final
class
PhabricatorNotificationDestructionEngineExtension
extends
PhabricatorDestructionEngineExtension
{
const
EXTENSIONKEY
=
'notifications'
;
public
function
getExtensionName
()
{
return
pht
(
'Notifications'
);
}
public
function
destroyObject
(
PhabricatorDestructionEngine
$engine
,
$object
)
{
$table
=
new
PhabricatorFeedStoryNotification
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
queryfx
(
$conn_w
,
'DELETE FROM %T WHERE primaryObjectPHID = %s'
,
$table
->
getTableName
(),
$object
->
getPHID
());
}
}
Event Timeline
Log In to Comment