Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110240021
PonderQuestionTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Apr 25, 08:02
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Apr 27, 08:02 (2 d)
Engine
blob
Format
Raw Data
Handle
25798482
Attached To
rPH Phabricator
PonderQuestionTransaction.php
View Options
<?php
final
class
PonderQuestionTransaction
extends
PhabricatorModularTransaction
{
const
MAILTAG_DETAILS
=
'question:details'
;
const
MAILTAG_COMMENT
=
'question:comment'
;
const
MAILTAG_ANSWERS
=
'question:answer'
;
const
MAILTAG_OTHER
=
'question:other'
;
public
function
getApplicationName
()
{
return
'ponder'
;
}
public
function
getTableName
()
{
return
'ponder_questiontransaction'
;
}
public
function
getApplicationTransactionType
()
{
return
PonderQuestionPHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
new
PonderQuestionTransactionComment
();
}
public
function
getBaseTransactionClass
()
{
return
'PonderQuestionTransactionType'
;
}
public
function
getMailTags
()
{
$tags
=
parent
::
getMailTags
();
switch
(
$this
->
getTransactionType
())
{
case
PhabricatorTransactions
::
TYPE_COMMENT
:
$tags
[]
=
self
::
MAILTAG_COMMENT
;
break
;
case
PonderQuestionTitleTransaction
::
TRANSACTIONTYPE
:
case
PonderQuestionContentTransaction
::
TRANSACTIONTYPE
:
case
PonderQuestionStatusTransaction
::
TRANSACTIONTYPE
:
case
PonderQuestionAnswerWikiTransaction
::
TRANSACTIONTYPE
:
$tags
[]
=
self
::
MAILTAG_DETAILS
;
break
;
case
PonderQuestionAnswerTransaction
::
TRANSACTIONTYPE
:
$tags
[]
=
self
::
MAILTAG_ANSWERS
;
break
;
default
:
$tags
[]
=
self
::
MAILTAG_OTHER
;
break
;
}
return
$tags
;
}
}
Event Timeline
Log In to Comment