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 PhortuneMerchantPHIDType extends PhabricatorPHIDType { const TYPECON..
Decoded Output download
<?php
final class PhortuneMerchantPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'PMRC';
public function getTypeName() {
return pht('Phortune Merchant');
}
public function newObject() {
return new PhortuneMerchant();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorPhortuneApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortuneMerchantQuery())
->withPHIDs($phids)
->needProfileImage(true);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$merchant = $objects[$phid];
$handle
->setName($merchant->getName())
->setURI($merchant->getURI())
->setImageURI($merchant->getProfileImageURI());
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhortuneMerchantPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'PMRC';
public function getTypeName() {
return pht('Phortune Merchant');
}
public function newObject() {
return new PhortuneMerchant();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorPhortuneApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortuneMerchantQuery())
->withPHIDs($phids)
->needProfileImage(true);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$merchant = $objects[$phid];
$handle
->setName($merchant->getName())
->setURI($merchant->getURI())
->setImageURI($merchant->getProfileImageURI());
}
}
}
Function Calls
None |
Stats
MD5 | e548c8f535a0faa87772689e3c56192b |
Eval Count | 0 |
Decode Time | 97 ms |