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 PhabricatorProjectColumnPointsOrder extends PhabricatorProjectColumnO..

Decoded Output download

<?php

final class PhabricatorProjectColumnPointsOrder
  extends PhabricatorProjectColumnOrder {

  const ORDERKEY = 'points';

  public function getDisplayName() {
    return pht('Sort by Points');
  }

  protected function newMenuIconIcon() {
    return 'fa-map-pin';
  }

  public function isEnabled() {
    return ManiphestTaskPoints::getIsEnabled();
  }

  public function getHasHeaders() {
    return false;
  }

  public function getCanReorder() {
    return false;
  }

  public function getMenuOrder() {
    return 6000;
  }

  protected function newSortVectorForObject($object) {
    $points = $object->getPoints();

    // Put cards with no points on top.
    $has_points = ($points !== null);
    if (!$has_points) {
      $overall_order = 0;
    } else {
      $overall_order = 1;
    }

    return array(
      $overall_order,
      -1.0 * (double)$points,
      -1 * (int)$object->getID(),
    );
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorProjectColumnPointsOrder
  extends PhabricatorProjectColumnOrder {

  const ORDERKEY = 'points';

  public function getDisplayName() {
    return pht('Sort by Points');
  }

  protected function newMenuIconIcon() {
    return 'fa-map-pin';
  }

  public function isEnabled() {
    return ManiphestTaskPoints::getIsEnabled();
  }

  public function getHasHeaders() {
    return false;
  }

  public function getCanReorder() {
    return false;
  }

  public function getMenuOrder() {
    return 6000;
  }

  protected function newSortVectorForObject($object) {
    $points = $object->getPoints();

    // Put cards with no points on top.
    $has_points = ($points !== null);
    if (!$has_points) {
      $overall_order = 0;
    } else {
      $overall_order = 1;
    }

    return array(
      $overall_order,
      -1.0 * (double)$points,
      -1 * (int)$object->getID(),
    );
  }

}

Function Calls

None

Variables

None

Stats

MD5 292f00836597ed925b414dc89f20e88a
Eval Count 0
Decode Time 98 ms