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 PhamePostTransaction extends PhabricatorModularTransaction { const..
Decoded Output download
<?php
final class PhamePostTransaction
extends PhabricatorModularTransaction {
const MAILTAG_CONTENT = 'phame-post-content';
const MAILTAG_SUBSCRIBERS = 'phame-post-subscribers';
const MAILTAG_COMMENT = 'phame-post-comment';
const MAILTAG_OTHER = 'phame-post-other';
public function getApplicationName() {
return 'phame';
}
public function getApplicationTransactionType() {
return PhabricatorPhamePostPHIDType::TYPECONST;
}
public function getBaseTransactionClass() {
return 'PhamePostTransactionType';
}
public function getApplicationTransactionCommentObject() {
return new PhamePostTransactionComment();
}
public function getMailTags() {
$tags = parent::getMailTags();
switch ($this->getTransactionType()) {
case PhabricatorTransactions::TYPE_COMMENT:
$tags[] = self::MAILTAG_COMMENT;
break;
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
$tags[] = self::MAILTAG_SUBSCRIBERS;
break;
case PhamePostTitleTransaction::TRANSACTIONTYPE:
case PhamePostSubtitleTransaction::TRANSACTIONTYPE:
case PhamePostBodyTransaction::TRANSACTIONTYPE:
$tags[] = self::MAILTAG_CONTENT;
break;
default:
$tags[] = self::MAILTAG_OTHER;
break;
}
return $tags;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhamePostTransaction
extends PhabricatorModularTransaction {
const MAILTAG_CONTENT = 'phame-post-content';
const MAILTAG_SUBSCRIBERS = 'phame-post-subscribers';
const MAILTAG_COMMENT = 'phame-post-comment';
const MAILTAG_OTHER = 'phame-post-other';
public function getApplicationName() {
return 'phame';
}
public function getApplicationTransactionType() {
return PhabricatorPhamePostPHIDType::TYPECONST;
}
public function getBaseTransactionClass() {
return 'PhamePostTransactionType';
}
public function getApplicationTransactionCommentObject() {
return new PhamePostTransactionComment();
}
public function getMailTags() {
$tags = parent::getMailTags();
switch ($this->getTransactionType()) {
case PhabricatorTransactions::TYPE_COMMENT:
$tags[] = self::MAILTAG_COMMENT;
break;
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
$tags[] = self::MAILTAG_SUBSCRIBERS;
break;
case PhamePostTitleTransaction::TRANSACTIONTYPE:
case PhamePostSubtitleTransaction::TRANSACTIONTYPE:
case PhamePostBodyTransaction::TRANSACTIONTYPE:
$tags[] = self::MAILTAG_CONTENT;
break;
default:
$tags[] = self::MAILTAG_OTHER;
break;
}
return $tags;
}
}
Function Calls
None |
Stats
MD5 | b021fcbff903a413d2a14683f54b697c |
Eval Count | 0 |
Decode Time | 91 ms |