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 PhabricatorCountdownEditEngine extends PhabricatorEditEngine { con..

Decoded Output download

<?php

final class PhabricatorCountdownEditEngine
  extends PhabricatorEditEngine {

  const ENGINECONST = 'countdown.countdown';

  public function isEngineConfigurable() {
    return false;
  }

  public function getEngineName() {
    return pht('Countdowns');
  }

  public function getSummaryHeader() {
    return pht('Edit Countdowns');
  }

  public function getSummaryText() {
    return pht('Creates and edits countdowns.');
  }

  public function getEngineApplicationClass() {
    return 'PhabricatorCountdownApplication';
  }

  protected function newEditableObject() {
    return PhabricatorCountdown::initializeNewCountdown(
      $this->getViewer());
  }

  protected function newObjectQuery() {
    return id(new PhabricatorCountdownQuery());
  }

  protected function getObjectCreateTitleText($object) {
    return pht('Create Countdown');
  }

  protected function getObjectCreateButtonText($object) {
    return pht('Create Countdown');
  }

  protected function getObjectEditTitleText($object) {
    return pht('Edit Countdown: %s', $object->getTitle());
  }

  protected function getObjectEditShortText($object) {
    return pht('Edit Countdown');
  }

  protected function getObjectCreateShortText() {
    return pht('Create Countdown');
  }

  protected function getObjectName() {
    return pht('Countdown');
  }

  protected function getCommentViewHeaderText($object) {
    return pht('Last Words');
  }

  protected function getCommentViewButtonText($object) {
    return pht('Contemplate Infinity');
  }

  protected function getObjectViewURI($object) {
    return $object->getURI();
  }

  protected function buildCustomEditFields($object) {
    $epoch_value = $object->getEpoch();
    if ($epoch_value === null) {
      $epoch_value = PhabricatorTime::getNow();
    }

    return array(
      id(new PhabricatorTextEditField())
        ->setKey('name')
        ->setLabel(pht('Name'))
        ->setIsRequired(true)
        ->setTransactionType(
            PhabricatorCountdownTitleTransaction::TRANSACTIONTYPE)
        ->setDescription(pht('The countdown name.'))
        ->setConduitDescription(pht('Rename the countdown.'))
        ->setConduitTypeDescription(pht('New countdown name.'))
        ->setValue($object->getTitle()),
      id(new PhabricatorEpochEditField())
        ->setKey('epoch')
        ->setLabel(pht('End Date'))
        ->setTransactionType(
            PhabricatorCountdownEpochTransaction::TRANSACTIONTYPE)
        ->setDescription(pht('Date when the countdown ends.'))
        ->setConduitDescription(pht('Change the end date of the countdown.'))
        ->setConduitTypeDescription(pht('New countdown end date.'))
        ->setValue($epoch_value),
      id(new PhabricatorRemarkupEditField())
        ->setKey('description')
        ->setLabel(pht('Description'))
        ->setTransactionType(
            PhabricatorCountdownDescriptionTransaction::TRANSACTIONTYPE)
        ->setDescription(pht('Description of the countdown.'))
        ->setConduitDescription(pht('Change the countdown description.'))
        ->setConduitTypeDescription(pht('New description.'))
        ->setValue($object->getDescription()),
    );
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorCountdownEditEngine
  extends PhabricatorEditEngine {

  const ENGINECONST = 'countdown.countdown';

  public function isEngineConfigurable() {
    return false;
  }

  public function getEngineName() {
    return pht('Countdowns');
  }

  public function getSummaryHeader() {
    return pht('Edit Countdowns');
  }

  public function getSummaryText() {
    return pht('Creates and edits countdowns.');
  }

  public function getEngineApplicationClass() {
    return 'PhabricatorCountdownApplication';
  }

  protected function newEditableObject() {
    return PhabricatorCountdown::initializeNewCountdown(
      $this->getViewer());
  }

  protected function newObjectQuery() {
    return id(new PhabricatorCountdownQuery());
  }

  protected function getObjectCreateTitleText($object) {
    return pht('Create Countdown');
  }

  protected function getObjectCreateButtonText($object) {
    return pht('Create Countdown');
  }

  protected function getObjectEditTitleText($object) {
    return pht('Edit Countdown: %s', $object->getTitle());
  }

  protected function getObjectEditShortText($object) {
    return pht('Edit Countdown');
  }

  protected function getObjectCreateShortText() {
    return pht('Create Countdown');
  }

  protected function getObjectName() {
    return pht('Countdown');
  }

  protected function getCommentViewHeaderText($object) {
    return pht('Last Words');
  }

  protected function getCommentViewButtonText($object) {
    return pht('Contemplate Infinity');
  }

  protected function getObjectViewURI($object) {
    return $object->getURI();
  }

  protected function buildCustomEditFields($object) {
    $epoch_value = $object->getEpoch();
    if ($epoch_value === null) {
      $epoch_value = PhabricatorTime::getNow();
    }

    return array(
      id(new PhabricatorTextEditField())
        ->setKey('name')
        ->setLabel(pht('Name'))
        ->setIsRequired(true)
        ->setTransactionType(
            PhabricatorCountdownTitleTransaction::TRANSACTIONTYPE)
        ->setDescription(pht('The countdown name.'))
        ->setConduitDescription(pht('Rename the countdown.'))
        ->setConduitTypeDescription(pht('New countdown name.'))
        ->setValue($object->getTitle()),
      id(new PhabricatorEpochEditField())
        ->setKey('epoch')
        ->setLabel(pht('End Date'))
        ->setTransactionType(
            PhabricatorCountdownEpochTransaction::TRANSACTIONTYPE)
        ->setDescription(pht('Date when the countdown ends.'))
        ->setConduitDescription(pht('Change the end date of the countdown.'))
        ->setConduitTypeDescription(pht('New countdown end date.'))
        ->setValue($epoch_value),
      id(new PhabricatorRemarkupEditField())
        ->setKey('description')
        ->setLabel(pht('Description'))
        ->setTransactionType(
            PhabricatorCountdownDescriptionTransaction::TRANSACTIONTYPE)
        ->setDescription(pht('Description of the countdown.'))
        ->setConduitDescription(pht('Change the countdown description.'))
        ->setConduitTypeDescription(pht('New description.'))
        ->setValue($object->getDescription()),
    );
  }

}

Function Calls

None

Variables

None

Stats

MD5 b73eefd0c44a034d9129a110f61cef8b
Eval Count 0
Decode Time 96 ms