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 PhortuneProductPHIDType extends PhabricatorPHIDType { const TYPECONS..

Decoded Output download

<?php

final class PhortuneProductPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'PDCT';

  public function getTypeName() {
    return pht('Phortune Product');
  }

  public function newObject() {
    return new PhortuneProduct();
  }

  public function getPHIDTypeApplicationClass() {
    return 'PhabricatorPhortuneApplication';
  }

  protected function buildQueryForObjects(
    PhabricatorObjectQuery $query,
    array $phids) {

    return id(new PhortuneProductQuery())
      ->withPHIDs($phids);
  }

  public function loadHandles(
    PhabricatorHandleQuery $query,
    array $handles,
    array $objects) {

    foreach ($handles as $phid => $handle) {
      $product = $objects[$phid];

      $id = $product->getID();

      $handle->setName(pht('Product %d', $id));
      $handle->setURI("/phortune/product/{$id}/");
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhortuneProductPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'PDCT';

  public function getTypeName() {
    return pht('Phortune Product');
  }

  public function newObject() {
    return new PhortuneProduct();
  }

  public function getPHIDTypeApplicationClass() {
    return 'PhabricatorPhortuneApplication';
  }

  protected function buildQueryForObjects(
    PhabricatorObjectQuery $query,
    array $phids) {

    return id(new PhortuneProductQuery())
      ->withPHIDs($phids);
  }

  public function loadHandles(
    PhabricatorHandleQuery $query,
    array $handles,
    array $objects) {

    foreach ($handles as $phid => $handle) {
      $product = $objects[$phid];

      $id = $product->getID();

      $handle->setName(pht('Product %d', $id));
      $handle->setURI("/phortune/product/{$id}/");
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 db78b9df19f90076a250019d04ff8caf
Eval Count 0
Decode Time 86 ms