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 PhortuneCartPHIDType extends PhabricatorPHIDType { const TYPECONST =..
Decoded Output download
<?php
final class PhortuneCartPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'CART';
public function getTypeName() {
return pht('Phortune Cart');
}
public function newObject() {
return new PhortuneCart();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorPhortuneApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortuneCartQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$cart = $objects[$phid];
$id = $cart->getID();
$name = $cart->getName();
$handle->setName($name);
$handle->setURI("/phortune/cart/{$id}/");
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhortuneCartPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'CART';
public function getTypeName() {
return pht('Phortune Cart');
}
public function newObject() {
return new PhortuneCart();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorPhortuneApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortuneCartQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$cart = $objects[$phid];
$id = $cart->getID();
$name = $cart->getName();
$handle->setName($name);
$handle->setURI("/phortune/cart/{$id}/");
}
}
}
Function Calls
None |
Stats
MD5 | b89c90cb35f8a832a85c704a7e6349e5 |
Eval Count | 0 |
Decode Time | 92 ms |