Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97209592
PhabricatorBadgesTransaction.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, Jan 3, 11:33
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Jan 5, 11:33 (2 d)
Engine
blob
Format
Raw Data
Handle
23355109
Attached To
rPH Phabricator
PhabricatorBadgesTransaction.php
View Options
<?php
final
class
PhabricatorBadgesTransaction
extends
PhabricatorModularTransaction
{
const
MAILTAG_DETAILS
=
'badges:details'
;
const
MAILTAG_COMMENT
=
'badges:comment'
;
const
MAILTAG_OTHER
=
'badges:other'
;
public
function
getApplicationName
()
{
return
'badges'
;
}
public
function
getApplicationTransactionType
()
{
return
PhabricatorBadgesPHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
new
PhabricatorBadgesTransactionComment
();
}
public
function
getBaseTransactionClass
()
{
return
'PhabricatorBadgesBadgeTransactionType'
;
}
public
function
getMailTags
()
{
$tags
=
parent
::
getMailTags
();
switch
(
$this
->
getTransactionType
())
{
case
PhabricatorTransactions
::
TYPE_COMMENT
:
$tags
[]
=
self
::
MAILTAG_COMMENT
;
break
;
case
PhabricatorBadgesBadgeNameTransaction
::
TRANSACTIONTYPE
:
case
PhabricatorBadgesBadgeDescriptionTransaction
::
TRANSACTIONTYPE
:
case
PhabricatorBadgesBadgeFlavorTransaction
::
TRANSACTIONTYPE
:
case
PhabricatorBadgesBadgeIconTransaction
::
TRANSACTIONTYPE
:
case
PhabricatorBadgesBadgeStatusTransaction
::
TRANSACTIONTYPE
:
case
PhabricatorBadgesBadgeQualityTransaction
::
TRANSACTIONTYPE
:
$tags
[]
=
self
::
MAILTAG_DETAILS
;
break
;
case
PhabricatorBadgesBadgeAwardTransaction
::
TRANSACTIONTYPE
:
case
PhabricatorBadgesBadgeRevokeTransaction
::
TRANSACTIONTYPE
:
default
:
$tags
[]
=
self
::
MAILTAG_OTHER
;
break
;
}
return
$tags
;
}
}
Event Timeline
Log In to Comment