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 abstract class PhabricatorDashboardPanelType extends Phobject { abstract public ..

Decoded Output download

<?php

abstract class PhabricatorDashboardPanelType extends Phobject {

  abstract public function getPanelTypeKey();
  abstract public function getPanelTypeName();
  abstract public function getPanelTypeDescription();
  abstract public function getIcon();

  abstract public function renderPanelContent(
    PhabricatorUser $viewer,
    PhabricatorDashboardPanel $panel,
    PhabricatorDashboardPanelRenderingEngine $engine);

  /**
   * Should this panel pull content in over AJAX?
   *
   * Normally, panels use AJAX to render their content. This makes the page
   * interactable sooner, allows panels to render in parallel, and prevents one
   * slow panel from slowing everything down.
   *
   * However, some panels are very cheap to build (i.e., no expensive service
   * calls or complicated rendering). In these cases overall performance can be
   * improved by disabling async rendering so the panel rendering happens in the
   * same process.
   *
   * @return bool True to enable asynchronous rendering when appropriate.
   */
  public function shouldRenderAsync() {
    return true;
  }

  public function adjustPanelHeader(
    PhabricatorUser $viewer,
    PhabricatorDashboardPanel $panel,
    PhabricatorDashboardPanelRenderingEngine $engine,
    PHUIHeaderView $header) {
    return $header;
  }

  public static function getAllPanelTypes() {
    return id(new PhutilClassMapQuery())
      ->setAncestorClass(__CLASS__)
      ->setUniqueMethod('getPanelTypeKey')
      ->execute();
  }

  final public function getEditEngineFields(PhabricatorDashboardPanel $panel) {
    return $this->newEditEngineFields($panel);
  }

  abstract protected function newEditEngineFields(
    PhabricatorDashboardPanel $panel);

  public function getSubpanelPHIDs(PhabricatorDashboardPanel $panel) {
    return array();
  }

  public function newHeaderEditActions(
    PhabricatorDashboardPanel $panel,
    PhabricatorUser $viewer,
    $context_phid) {
    return array();
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

abstract class PhabricatorDashboardPanelType extends Phobject {

  abstract public function getPanelTypeKey();
  abstract public function getPanelTypeName();
  abstract public function getPanelTypeDescription();
  abstract public function getIcon();

  abstract public function renderPanelContent(
    PhabricatorUser $viewer,
    PhabricatorDashboardPanel $panel,
    PhabricatorDashboardPanelRenderingEngine $engine);

  /**
   * Should this panel pull content in over AJAX?
   *
   * Normally, panels use AJAX to render their content. This makes the page
   * interactable sooner, allows panels to render in parallel, and prevents one
   * slow panel from slowing everything down.
   *
   * However, some panels are very cheap to build (i.e., no expensive service
   * calls or complicated rendering). In these cases overall performance can be
   * improved by disabling async rendering so the panel rendering happens in the
   * same process.
   *
   * @return bool True to enable asynchronous rendering when appropriate.
   */
  public function shouldRenderAsync() {
    return true;
  }

  public function adjustPanelHeader(
    PhabricatorUser $viewer,
    PhabricatorDashboardPanel $panel,
    PhabricatorDashboardPanelRenderingEngine $engine,
    PHUIHeaderView $header) {
    return $header;
  }

  public static function getAllPanelTypes() {
    return id(new PhutilClassMapQuery())
      ->setAncestorClass(__CLASS__)
      ->setUniqueMethod('getPanelTypeKey')
      ->execute();
  }

  final public function getEditEngineFields(PhabricatorDashboardPanel $panel) {
    return $this->newEditEngineFields($panel);
  }

  abstract protected function newEditEngineFields(
    PhabricatorDashboardPanel $panel);

  public function getSubpanelPHIDs(PhabricatorDashboardPanel $panel) {
    return array();
  }

  public function newHeaderEditActions(
    PhabricatorDashboardPanel $panel,
    PhabricatorUser $viewer,
    $context_phid) {
    return array();
  }

}

Function Calls

None

Variables

None

Stats

MD5 a8c9a54de0fd7e559cbe35a4af698bad
Eval Count 0
Decode Time 105 ms