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 PhabricatorCalendarImportUpdateLogType extends PhabricatorCalendarImp..

Decoded Output download

<?php

final class PhabricatorCalendarImportUpdateLogType
  extends PhabricatorCalendarImportLogType {

  const LOGTYPE = 'update';

  public function getDisplayType(
    PhabricatorUser $viewer,
    PhabricatorCalendarImportLog $log) {
    $is_new = $log->getParameter('new');
    if ($is_new) {
      return pht('Imported Event');
    } else {
      return pht('Updated Event');
    }
  }

  public function getDisplayDescription(
    PhabricatorUser $viewer,
    PhabricatorCalendarImportLog $log) {
    $event_phid = $log->getParameter('phid');
    return $viewer->renderHandle($event_phid);
  }

  public function getDisplayIcon(
    PhabricatorUser $viewer,
    PhabricatorCalendarImportLog $log) {
    return 'fa-calendar';
  }

  public function getDisplayColor(
    PhabricatorUser $viewer,
    PhabricatorCalendarImportLog $log) {
    return 'green';
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorCalendarImportUpdateLogType
  extends PhabricatorCalendarImportLogType {

  const LOGTYPE = 'update';

  public function getDisplayType(
    PhabricatorUser $viewer,
    PhabricatorCalendarImportLog $log) {
    $is_new = $log->getParameter('new');
    if ($is_new) {
      return pht('Imported Event');
    } else {
      return pht('Updated Event');
    }
  }

  public function getDisplayDescription(
    PhabricatorUser $viewer,
    PhabricatorCalendarImportLog $log) {
    $event_phid = $log->getParameter('phid');
    return $viewer->renderHandle($event_phid);
  }

  public function getDisplayIcon(
    PhabricatorUser $viewer,
    PhabricatorCalendarImportLog $log) {
    return 'fa-calendar';
  }

  public function getDisplayColor(
    PhabricatorUser $viewer,
    PhabricatorCalendarImportLog $log) {
    return 'green';
  }

}

Function Calls

None

Variables

None

Stats

MD5 b4e7dbc559b0747155137100d193cce9
Eval Count 0
Decode Time 86 ms