Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / calendar / xaction / PhabricatorCalendarImportDisableTransaction.php
blob9cc23ab33fbfecf077aa34f1bcaee3a8efc4524b
1 <?php
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()) {
18 return pht(
19 '%s disabled this import.',
20 $this->renderAuthor());
21 } else {
22 return pht(
23 '%s enabled this import.',
24 $this->renderAuthor());