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

Decoded Output download

<?php

final class PhabricatorDashboardDashboardPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'DSHB';

  public function getTypeName() {
    return pht('Dashboard');
  }

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

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

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

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

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

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

      $id = $dashboard->getID();

      $handle->setName($dashboard->getName());
      $handle->setURI("/dashboard/view/{$id}/");
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorDashboardDashboardPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'DSHB';

  public function getTypeName() {
    return pht('Dashboard');
  }

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

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

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

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

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

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

      $id = $dashboard->getID();

      $handle->setName($dashboard->getName());
      $handle->setURI("/dashboard/view/{$id}/");
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 9c4a98d2b8166c88c3cd577b718f8444
Eval Count 0
Decode Time 112 ms