Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96578240
PhabricatorSlowvoteResponsesTransaction.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, Dec 28, 10:55
Size
748 B
Mime Type
text/x-php
Expires
Mon, Dec 30, 10:55 (2 d)
Engine
blob
Format
Raw Data
Handle
23211046
Attached To
rPH Phabricator
PhabricatorSlowvoteResponsesTransaction.php
View Options
<?php
final
class
PhabricatorSlowvoteResponsesTransaction
extends
PhabricatorSlowvoteTransactionType
{
const
TRANSACTIONTYPE
=
'vote:responses'
;
public
function
generateOldValue
(
$object
)
{
return
(
int
)
$object
->
getResponseVisibility
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setResponseVisibility
(
$value
);
}
public
function
getTitle
()
{
// TODO: This could be more detailed
return
pht
(
'%s changed who can see the responses.'
,
$this
->
renderAuthor
());
}
public
function
getTitleForFeed
()
{
// TODO: This could be more detailed
return
pht
(
'%s changed who can see the responses of %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
}
Event Timeline
Log In to Comment