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 DifferentialTagsCommitMessageField extends DifferentialCommitMessageF..
Decoded Output download
<?php
final class DifferentialTagsCommitMessageField
extends DifferentialCommitMessageField {
const FIELDKEY = 'phabricator:projects';
public function getFieldName() {
return pht('Tags');
}
public function getFieldOrder() {
return 7000;
}
public function getFieldAliases() {
return array(
'Tag',
'Project',
'Projects',
);
}
public function isTemplateField() {
return false;
}
public function parseFieldValue($value) {
return $this->parseObjectList(
$value,
array(
PhabricatorProjectProjectPHIDType::TYPECONST,
));
}
public function readFieldValueFromObject(DifferentialRevision $revision) {
if (!$revision->getPHID()) {
return array();
}
$projects = PhabricatorEdgeQuery::loadDestinationPHIDs(
$revision->getPHID(),
PhabricatorProjectObjectHasProjectEdgeType::EDGECONST);
$projects = array_reverse($projects);
return $projects;
}
public function readFieldValueFromConduit($value) {
return $this->readStringListFieldValueFromConduit($value);
}
public function renderFieldValue($value) {
return $this->renderHandleList($value);
}
public function getFieldTransactions($value) {
return array(
array(
'type' => PhabricatorProjectsEditEngineExtension::EDITKEY_SET,
'value' => $value,
),
);
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class DifferentialTagsCommitMessageField
extends DifferentialCommitMessageField {
const FIELDKEY = 'phabricator:projects';
public function getFieldName() {
return pht('Tags');
}
public function getFieldOrder() {
return 7000;
}
public function getFieldAliases() {
return array(
'Tag',
'Project',
'Projects',
);
}
public function isTemplateField() {
return false;
}
public function parseFieldValue($value) {
return $this->parseObjectList(
$value,
array(
PhabricatorProjectProjectPHIDType::TYPECONST,
));
}
public function readFieldValueFromObject(DifferentialRevision $revision) {
if (!$revision->getPHID()) {
return array();
}
$projects = PhabricatorEdgeQuery::loadDestinationPHIDs(
$revision->getPHID(),
PhabricatorProjectObjectHasProjectEdgeType::EDGECONST);
$projects = array_reverse($projects);
return $projects;
}
public function readFieldValueFromConduit($value) {
return $this->readStringListFieldValueFromConduit($value);
}
public function renderFieldValue($value) {
return $this->renderHandleList($value);
}
public function getFieldTransactions($value) {
return array(
array(
'type' => PhabricatorProjectsEditEngineExtension::EDITKEY_SET,
'value' => $value,
),
);
}
}
Function Calls
None |
Stats
MD5 | 0ce4c6a39b60eb6b4f7032e0429bebef |
Eval Count | 0 |
Decode Time | 103 ms |