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 AlmanacInterfaceDestroyTransaction extends AlmanacInterfaceTransactio..
Decoded Output download
<?php
final class AlmanacInterfaceDestroyTransaction
extends AlmanacInterfaceTransactionType {
const TRANSACTIONTYPE = 'almanac:interface:destroy';
public function generateOldValue($object) {
return false;
}
public function applyExternalEffects($object, $value) {
id(new PhabricatorDestructionEngine())
->destroyObject($object);
}
public function validateTransactions($object, array $xactions) {
$errors = array();
if ($xactions) {
if ($object->loadIsInUse()) {
$errors[] = $this->newInvalidError(
pht(
'You can not delete this interface because it is currently in '.
'use. One or more services are bound to it.'));
}
}
return $errors;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class AlmanacInterfaceDestroyTransaction
extends AlmanacInterfaceTransactionType {
const TRANSACTIONTYPE = 'almanac:interface:destroy';
public function generateOldValue($object) {
return false;
}
public function applyExternalEffects($object, $value) {
id(new PhabricatorDestructionEngine())
->destroyObject($object);
}
public function validateTransactions($object, array $xactions) {
$errors = array();
if ($xactions) {
if ($object->loadIsInUse()) {
$errors[] = $this->newInvalidError(
pht(
'You can not delete this interface because it is currently in '.
'use. One or more services are bound to it.'));
}
}
return $errors;
}
}
Function Calls
None |
Stats
MD5 | 4d8ead657d135f966e394ee44bd47b75 |
Eval Count | 0 |
Decode Time | 91 ms |