3 final class PhabricatorCalendarImportDeleteTransaction
4 extends PhabricatorCalendarImportTransactionType
{
6 const TRANSACTIONTYPE
= 'calendar.import.delete';
8 public function generateOldValue($object) {
12 public function applyExternalEffects($object, $value) {
13 $events = id(new PhabricatorCalendarEventQuery())
14 ->setViewer($this->getActor())
15 ->withImportSourcePHIDs(array($object->getPHID()))
18 $engine = new PhabricatorDestructionEngine();
19 foreach ($events as $event) {
20 $engine->destroyObject($event);
24 public function getTitle() {
26 '%s deleted imported events from this source.',
27 $this->renderAuthor());