Page MenuHomec4science

PhabricatorNotificationDestructionEngineExtension.php
No OneTemporary

File Metadata

Created
Sat, Nov 23, 08:19

PhabricatorNotificationDestructionEngineExtension.php

<?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