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 PonderQuestionAnswerTransaction extends PonderQuestionTransactionType..
Decoded Output download
<?php
final class PonderQuestionAnswerTransaction
extends PonderQuestionTransactionType {
const TRANSACTIONTYPE = 'ponder.question:answer';
public function generateOldValue($object) {
return $object->getAnswers();
}
public function applyInternalEffects($object, $value) {
$count = $object->getAnswerCount();
$count++;
$object->setAnswerCount($count);
}
public function getTitle() {
return pht(
'%s added an answer.',
$this->renderAuthor());
}
public function getTitleForFeed() {
return pht(
'%s added an answer to %s.',
$this->renderAuthor(),
$this->renderObject());
}
public function getIcon() {
return 'fa-plus';
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PonderQuestionAnswerTransaction
extends PonderQuestionTransactionType {
const TRANSACTIONTYPE = 'ponder.question:answer';
public function generateOldValue($object) {
return $object->getAnswers();
}
public function applyInternalEffects($object, $value) {
$count = $object->getAnswerCount();
$count++;
$object->setAnswerCount($count);
}
public function getTitle() {
return pht(
'%s added an answer.',
$this->renderAuthor());
}
public function getTitleForFeed() {
return pht(
'%s added an answer to %s.',
$this->renderAuthor(),
$this->renderObject());
}
public function getIcon() {
return 'fa-plus';
}
}
Function Calls
None |
Stats
MD5 | 4f06c9bfd72b5d60e56003f33d70ddd7 |
Eval Count | 0 |
Decode Time | 92 ms |