3 final class PhabricatorCalendarImportDisableTransaction
4 extends PhabricatorCalendarImportTransactionType
{
6 const TRANSACTIONTYPE
= 'calendar.import.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 import.',
20 $this->renderAuthor());
23 '%s enabled this import.',
24 $this->renderAuthor());