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 AlmanacNetworkPHIDType extends PhabricatorPHIDType { const TYPECONST..
Decoded Output download
<?php
final class AlmanacNetworkPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'ANET';
public function getTypeName() {
return pht('Almanac Network');
}
public function newObject() {
return new AlmanacNetwork();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorAlmanacApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new AlmanacNetworkQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$network = $objects[$phid];
$id = $network->getID();
$name = $network->getName();
$handle->setObjectName(pht('Network %d', $id));
$handle->setName($name);
$handle->setURI($network->getURI());
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class AlmanacNetworkPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'ANET';
public function getTypeName() {
return pht('Almanac Network');
}
public function newObject() {
return new AlmanacNetwork();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorAlmanacApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new AlmanacNetworkQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$network = $objects[$phid];
$id = $network->getID();
$name = $network->getName();
$handle->setObjectName(pht('Network %d', $id));
$handle->setName($name);
$handle->setURI($network->getURI());
}
}
}
Function Calls
None |
Stats
MD5 | f44b8ac91c2ee441d39ed418e60e7585 |
Eval Count | 0 |
Decode Time | 91 ms |