Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / calendar / xaction / PhabricatorCalendarExportDisableTransaction.php
blobc7f00cbc460f3c0480b19b4cbaa3eebc07266222
1 <?php
3 final class PhabricatorCalendarExportDisableTransaction
4 extends PhabricatorCalendarExportTransactionType {
6 const TRANSACTIONTYPE = 'calendar.export.disable';
8 public function generateOldValue($object) {
9 return (int)$object->getIsDisabled();
12 public function applyInternalEffects($object, $value) {
13 $object->setIsDisabled((int)$value);
16 public function getTitle() {
17 if ($this->getNewValue()) {
18 return pht(
19 '%s disabled this export.',
20 $this->renderAuthor());
21 } else {
22 return pht(
23 '%s enabled this export.',
24 $this->renderAuthor());