Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115970487
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, Jun 4, 04:05
Size
744 B
Mime Type
text/x-php
Expires
Fri, Jun 6, 04:05 (2 d)
Engine
blob
Format
Raw Data
Handle
26505335
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