Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F458539
PhabricatorNotificationDestructionEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
576 B
Referenced Files
None
Subscribers
None
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
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 12:18 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71453
Default Alt Text
PhabricatorNotificationDestructionEngineExtension.php (576 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment