Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php final class PhabricatorCalendarExportDisableTransaction extends PhabricatorCalend..

Decoded Output download

<?php

final class PhabricatorCalendarExportDisableTransaction
  extends PhabricatorCalendarExportTransactionType {

  const TRANSACTIONTYPE = 'calendar.export.disable';

  public function generateOldValue($object) {
    return (int)$object->getIsDisabled();
  }

  public function applyInternalEffects($object, $value) {
    $object->setIsDisabled((int)$value);
  }

  public function getTitle() {
    if ($this->getNewValue()) {
      return pht(
        '%s disabled this export.',
        $this->renderAuthor());
    } else {
      return pht(
        '%s enabled this export.',
        $this->renderAuthor());
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorCalendarExportDisableTransaction
  extends PhabricatorCalendarExportTransactionType {

  const TRANSACTIONTYPE = 'calendar.export.disable';

  public function generateOldValue($object) {
    return (int)$object->getIsDisabled();
  }

  public function applyInternalEffects($object, $value) {
    $object->setIsDisabled((int)$value);
  }

  public function getTitle() {
    if ($this->getNewValue()) {
      return pht(
        '%s disabled this export.',
        $this->renderAuthor());
    } else {
      return pht(
        '%s enabled this export.',
        $this->renderAuthor());
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 482e71466582c194839a7f468e1b8c74
Eval Count 0
Decode Time 83 ms