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 HeraldActingUserField extends HeraldField { const FIELDCONST = 'he..

Decoded Output download

<?php

final class HeraldActingUserField
  extends HeraldField {

  const FIELDCONST = 'herald.acting-user';

  public function getHeraldFieldName() {
    return pht('Acting user');
  }

  public function getHeraldFieldValue($object) {
    return $this->getAdapter()->getActingAsPHID();
  }

  protected function getHeraldFieldStandardType() {
    return self::STANDARD_PHID;
  }

  protected function getDatasource() {
    return new PhabricatorPeopleDatasource();
  }

  public function supportsObject($object) {
    return true;
  }

  public function getFieldGroupKey() {
    return HeraldEditFieldGroup::FIELDGROUPKEY;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class HeraldActingUserField
  extends HeraldField {

  const FIELDCONST = 'herald.acting-user';

  public function getHeraldFieldName() {
    return pht('Acting user');
  }

  public function getHeraldFieldValue($object) {
    return $this->getAdapter()->getActingAsPHID();
  }

  protected function getHeraldFieldStandardType() {
    return self::STANDARD_PHID;
  }

  protected function getDatasource() {
    return new PhabricatorPeopleDatasource();
  }

  public function supportsObject($object) {
    return true;
  }

  public function getFieldGroupKey() {
    return HeraldEditFieldGroup::FIELDGROUPKEY;
  }

}

Function Calls

None

Variables

None

Stats

MD5 b1c82f2e5ae1e7e88ee255f53c3900c2
Eval Count 0
Decode Time 79 ms