Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892168
PholioTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PholioTransaction.php
View Options
<?php
final
class
PholioTransaction
extends
PhabricatorModularTransaction
{
const
MAILTAG_STATUS
=
'pholio-status'
;
const
MAILTAG_COMMENT
=
'pholio-comment'
;
const
MAILTAG_UPDATED
=
'pholio-updated'
;
const
MAILTAG_OTHER
=
'pholio-other'
;
public
function
getApplicationName
(
)
{
return
'pholio'
;
}
public
function
getBaseTransactionClass
(
)
{
return
'PholioTransactionType'
;
}
public
function
getApplicationTransactionType
(
)
{
return
PholioMockPHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
(
)
{
return
new
PholioTransactionComment
(
)
;
}
public
function
getMailTags
(
)
{
$tags
=
array
(
)
;
switch
(
$this
->
getTransactionType
(
)
)
{
case
PholioMockInlineTransaction
::
TRANSACTIONTYPE
:
case
PhabricatorTransactions
::
TYPE_COMMENT
:
$tags
[
]
=
self
::
MAILTAG_COMMENT
;
break
;
case
PholioMockStatusTransaction
::
TRANSACTIONTYPE
:
$tags
[
]
=
self
::
MAILTAG_STATUS
;
break
;
case
PholioMockNameTransaction
::
TRANSACTIONTYPE
:
case
PholioMockDescriptionTransaction
::
TRANSACTIONTYPE
:
case
PholioImageNameTransaction
::
TRANSACTIONTYPE
:
case
PholioImageDescriptionTransaction
::
TRANSACTIONTYPE
:
case
PholioImageSequenceTransaction
::
TRANSACTIONTYPE
:
case
PholioImageFileTransaction
::
TRANSACTIONTYPE
:
case
PholioImageReplaceTransaction
::
TRANSACTIONTYPE
:
$tags
[
]
=
self
::
MAILTAG_UPDATED
;
break
;
default
:
$tags
[
]
=
self
::
MAILTAG_OTHER
;
break
;
}
return
$tags
;
}
public
function
isInlineCommentTransaction
(
)
{
switch
(
$this
->
getTransactionType
(
)
)
{
case
PholioMockInlineTransaction
::
TRANSACTIONTYPE
:
return
true
;
}
return
parent
::
isInlineCommentTransaction
(
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 16:21 (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126427
Default Alt Text
PholioTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment