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 PhabricatorProjectIconTransaction extends PhabricatorProjectTransacti..

Decoded Output download

<?php

final class PhabricatorProjectIconTransaction
  extends PhabricatorProjectTransactionType {

  const TRANSACTIONTYPE = 'project:icon';

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

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

  public function getTitle() {
    $set = new PhabricatorProjectIconSet();
    $new = $this->getNewValue();

    return pht(
      "%s set this project's icon to %s.",
      $this->renderAuthor(),
      $this->renderValue($set->getIconLabel($new)));
  }

  public function getTitleForFeed() {
    $set = new PhabricatorProjectIconSet();
    $new = $this->getNewValue();

    return pht(
      '%s set the icon for %s to %s.',
      $this->renderAuthor(),
      $this->renderObject(),
      $this->renderValue($set->getIconLabel($new)));
  }

  public function getIcon() {
    $new = $this->getNewValue();
    return PhabricatorProjectIconSet::getIconIcon($new);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorProjectIconTransaction
  extends PhabricatorProjectTransactionType {

  const TRANSACTIONTYPE = 'project:icon';

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

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

  public function getTitle() {
    $set = new PhabricatorProjectIconSet();
    $new = $this->getNewValue();

    return pht(
      "%s set this project's icon to %s.",
      $this->renderAuthor(),
      $this->renderValue($set->getIconLabel($new)));
  }

  public function getTitleForFeed() {
    $set = new PhabricatorProjectIconSet();
    $new = $this->getNewValue();

    return pht(
      '%s set the icon for %s to %s.',
      $this->renderAuthor(),
      $this->renderObject(),
      $this->renderValue($set->getIconLabel($new)));
  }

  public function getIcon() {
    $new = $this->getNewValue();
    return PhabricatorProjectIconSet::getIconIcon($new);
  }

}

Function Calls

None

Variables

None

Stats

MD5 2500a51741e1d6b8eb32c96715f1026c
Eval Count 0
Decode Time 85 ms