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 PhabricatorPackagesPublisherPHIDType extends PhabricatorPHIDType { ..

Decoded Output download

<?php

final class PhabricatorPackagesPublisherPHIDType
  extends PhabricatorPHIDType {

  const TYPECONST = 'PPUB';

  public function getTypeName() {
    return pht('Package Publisher');
  }

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

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

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

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

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

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

      $name = $publisher->getName();
      $uri = $publisher->getURI();

      $handle
        ->setName($name)
        ->setURI($uri);
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorPackagesPublisherPHIDType
  extends PhabricatorPHIDType {

  const TYPECONST = 'PPUB';

  public function getTypeName() {
    return pht('Package Publisher');
  }

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

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

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

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

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

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

      $name = $publisher->getName();
      $uri = $publisher->getURI();

      $handle
        ->setName($name)
        ->setURI($uri);
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 30618f4ee8e661aec5d7027dc0a334da
Eval Count 0
Decode Time 92 ms