3 final class PhabricatorCalendarEventCancelTransaction
4 extends PhabricatorCalendarEventTransactionType
{
6 const TRANSACTIONTYPE
= 'calendar.cancel';
8 public function generateOldValue($object) {
9 return (int)$object->getIsCancelled();
12 public function generateNewValue($object, $value) {
16 public function applyInternalEffects($object, $value) {
17 $object->setIsCancelled($value);
20 public function getTitle() {
21 if ($this->getNewValue()) {
23 '%s cancelled this event.',
24 $this->renderAuthor());
27 '%s reinstated this event.',
28 $this->renderAuthor());
32 public function getTitleForFeed() {
33 if ($this->getNewValue()) {
36 $this->renderAuthor(),
37 $this->renderObject());
41 $this->renderAuthor(),
42 $this->renderObject());