Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122253726
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
Wed, Jul 16, 22:20
Size
744 B
Mime Type
text/x-php
Expires
Fri, Jul 18, 22:20 (2 d)
Engine
blob
Format
Raw Data
Handle
27456868
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