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 PhortunePaymentMethodPHIDType extends PhabricatorPHIDType { const TY..
Decoded Output download
<?php
final class PhortunePaymentMethodPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'PAYM';
public function getTypeName() {
return pht('Phortune Payment Method');
}
public function newObject() {
return new PhortunePaymentMethod();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorPhortuneApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortunePaymentMethodQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$method = $objects[$phid];
$handle
->setName($method->getFullDisplayName())
->setURI($method->getURI());
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhortunePaymentMethodPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'PAYM';
public function getTypeName() {
return pht('Phortune Payment Method');
}
public function newObject() {
return new PhortunePaymentMethod();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorPhortuneApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortunePaymentMethodQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$method = $objects[$phid];
$handle
->setName($method->getFullDisplayName())
->setURI($method->getURI());
}
}
}
Function Calls
None |
Stats
MD5 | 816d11505959ea9d7d611cfd713d4142 |
Eval Count | 0 |
Decode Time | 91 ms |