Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/notification/engineextension/PhabricatorNotificationDestructionEngineExtension.php
12256 views
1
<?php
2
3
final class PhabricatorNotificationDestructionEngineExtension
4
extends PhabricatorDestructionEngineExtension {
5
6
const EXTENSIONKEY = 'notifications';
7
8
public function getExtensionName() {
9
return pht('Notifications');
10
}
11
12
public function destroyObject(
13
PhabricatorDestructionEngine $engine,
14
$object) {
15
16
$table = new PhabricatorFeedStoryNotification();
17
$conn_w = $table->establishConnection('w');
18
19
queryfx(
20
$conn_w,
21
'DELETE FROM %T WHERE primaryObjectPHID = %s',
22
$table->getTableName(),
23
$object->getPHID());
24
}
25
26
}
27
28