Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106018285
PonderQuestionAnswerTransaction.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, Mar 21, 14:03
Size
709 B
Mime Type
text/x-php
Expires
Sun, Mar 23, 14:03 (2 d)
Engine
blob
Format
Raw Data
Handle
25097782
Attached To
rPH Phabricator
PonderQuestionAnswerTransaction.php
View Options
<?php
final
class
PonderQuestionAnswerTransaction
extends
PonderQuestionTransactionType
{
const
TRANSACTIONTYPE
=
'ponder.question:answer'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getAnswers
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$count
=
$object
->
getAnswerCount
();
$count
++;
$object
->
setAnswerCount
(
$count
);
}
public
function
getTitle
()
{
return
pht
(
'%s added an answer.'
,
$this
->
renderAuthor
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s added an answer to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
public
function
getIcon
()
{
return
'fa-plus'
;
}
}
Event Timeline
Log In to Comment