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()) {
19 '%s disabled this export.',
20 $this->renderAuthor());
23 '%s enabled this export.',
24 $this->renderAuthor());