2013-07-26 22:52:57 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PonderQuestionTransaction
|
|
|
|
extends PhabricatorApplicationTransaction {
|
|
|
|
|
2013-07-29 00:02:18 +02:00
|
|
|
const TYPE_TITLE = 'ponder.question:question';
|
|
|
|
const TYPE_CONTENT = 'ponder.question:content';
|
2013-07-29 00:59:53 +02:00
|
|
|
const TYPE_ANSWERS = 'ponder.question:answer';
|
2013-07-29 00:02:18 +02:00
|
|
|
|
2013-07-26 22:52:57 +02:00
|
|
|
public function getApplicationName() {
|
|
|
|
return 'ponder';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTableName() {
|
|
|
|
return 'ponder_questiontransaction';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationTransactionType() {
|
|
|
|
return PonderPHIDTypeQuestion::TYPECONST;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationTransactionCommentObject() {
|
|
|
|
return new PonderQuestionTransactionComment();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationObjectTypeName() {
|
|
|
|
return pht('question');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|