Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97438313
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
Sat, Jan 4, 10:35
Size
709 B
Mime Type
text/x-php
Expires
Mon, Jan 6, 10:35 (2 d)
Engine
blob
Format
Raw Data
Handle
23408501
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