Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110919480
PhabricatorPasteTitleTransaction.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
Mon, Apr 28, 19:41
Size
744 B
Mime Type
text/x-php
Expires
Wed, Apr 30, 19:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25847212
Attached To
rPH Phabricator
PhabricatorPasteTitleTransaction.php
View Options
<?php
final
class
PhabricatorPasteTitleTransaction
extends
PhabricatorPasteTransactionType
{
const
TRANSACTIONTYPE
=
'paste.title'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getTitle
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setTitle
(
$value
);
}
public
function
getTitle
()
{
return
pht
(
'%s updated the paste
\'
s title from "%s" to "%s".'
,
$this
->
renderAuthor
(),
$this
->
getOldValue
(),
$this
->
getNewValue
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s updated the title for %s from "%s" to "%s".'
,
$this
->
renderAuthor
(),
$this
->
renderObject
(),
$this
->
getOldValue
(),
$this
->
getNewValue
());
}
}
Event Timeline
Log In to Comment