Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1148613
PonderQuestionAnswerTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
709 B
Referenced Files
None
Subscribers
None
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'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 1, 2:51 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
260968
Default Alt Text
PonderQuestionAnswerTransaction.php (709 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment