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 PhortunePaymentProviderPHIDType extends PhabricatorPHIDType { const ..
Decoded Output download
<?php
final class PhortunePaymentProviderPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'PHPR';
public function getTypeName() {
return pht('Phortune Payment Provider');
}
public function newObject() {
return new PhortunePaymentProviderConfig();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorPhortuneApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortunePaymentProviderConfigQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$provider_config = $objects[$phid];
$id = $provider_config->getID();
$handle->setName($provider_config->buildProvider()->getName());
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhortunePaymentProviderPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'PHPR';
public function getTypeName() {
return pht('Phortune Payment Provider');
}
public function newObject() {
return new PhortunePaymentProviderConfig();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorPhortuneApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortunePaymentProviderConfigQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$provider_config = $objects[$phid];
$id = $provider_config->getID();
$handle->setName($provider_config->buildProvider()->getName());
}
}
}
Function Calls
None |
Stats
MD5 | 7b41b1ce52eaa361e17177e14836267f |
Eval Count | 0 |
Decode Time | 94 ms |