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 DifferentialAuditorsCommitMessageField extends DifferentialCommitMess..

Decoded Output download

<?php

final class DifferentialAuditorsCommitMessageField
  extends DifferentialCommitMessageCustomField {

  const FIELDKEY = 'phabricator:auditors';

  public function getFieldName() {
    return pht('Auditors');
  }

  public function getFieldAliases() {
    return array(
      'Auditor',
    );
  }

  public function parseFieldValue($value) {
    return $this->parseObjectList(
      $value,
      array(
        PhabricatorPeopleUserPHIDType::TYPECONST,
        PhabricatorProjectProjectPHIDType::TYPECONST,
        PhabricatorOwnersPackagePHIDType::TYPECONST,
      ));
  }

  public function getCustomFieldKey() {
    return 'phabricator:auditors';
  }

  public function isFieldEditable() {
    return true;
  }

  public function isTemplateField() {
    return false;
  }

  public function readFieldValueFromConduit($value) {
    return $this->readStringListFieldValueFromConduit($value);
  }

  public function renderFieldValue($value) {
    return $this->renderHandleList($value);
  }

  protected function readFieldValueFromCustomFieldStorage($value) {
    return $this->readJSONFieldValueFromCustomFieldStorage($value, array());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class DifferentialAuditorsCommitMessageField
  extends DifferentialCommitMessageCustomField {

  const FIELDKEY = 'phabricator:auditors';

  public function getFieldName() {
    return pht('Auditors');
  }

  public function getFieldAliases() {
    return array(
      'Auditor',
    );
  }

  public function parseFieldValue($value) {
    return $this->parseObjectList(
      $value,
      array(
        PhabricatorPeopleUserPHIDType::TYPECONST,
        PhabricatorProjectProjectPHIDType::TYPECONST,
        PhabricatorOwnersPackagePHIDType::TYPECONST,
      ));
  }

  public function getCustomFieldKey() {
    return 'phabricator:auditors';
  }

  public function isFieldEditable() {
    return true;
  }

  public function isTemplateField() {
    return false;
  }

  public function readFieldValueFromConduit($value) {
    return $this->readStringListFieldValueFromConduit($value);
  }

  public function renderFieldValue($value) {
    return $this->renderHandleList($value);
  }

  protected function readFieldValueFromCustomFieldStorage($value) {
    return $this->readJSONFieldValueFromCustomFieldStorage($value, array());
  }

}

Function Calls

None

Variables

None

Stats

MD5 acd8f2d4dc40d93110bfe437b25863d6
Eval Count 0
Decode Time 90 ms