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 HeraldRuleDisableTransaction extends HeraldRuleTransactionType { c..

Decoded Output download

<?php

final class HeraldRuleDisableTransaction
  extends HeraldRuleTransactionType {

  const TRANSACTIONTYPE = 'herald:disable';

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

  public function generateNewValue($object, $value) {
    return (bool)$value;
  }

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

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

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class HeraldRuleDisableTransaction
  extends HeraldRuleTransactionType {

  const TRANSACTIONTYPE = 'herald:disable';

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

  public function generateNewValue($object, $value) {
    return (bool)$value;
  }

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

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

}

Function Calls

None

Variables

None

Stats

MD5 fd260e1d45974409927e66eeab149bba
Eval Count 0
Decode Time 105 ms