Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96579054
PhameBlogDescriptionTransaction.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, 11:20
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Dec 30, 11:20 (1 d, 9 h)
Engine
blob
Format
Raw Data
Handle
23210823
Attached To
rPH Phabricator
PhameBlogDescriptionTransaction.php
View Options
<?php
final
class
PhameBlogDescriptionTransaction
extends
PhameBlogTransactionType
{
const
TRANSACTIONTYPE
=
'phame.blog.description'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getDescription
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setDescription
(
$value
);
}
public
function
getTitle
()
{
return
pht
(
'%s updated the description.'
,
$this
->
renderAuthor
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s updated the description for %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
public
function
hasChangeDetailView
()
{
return
true
;
}
public
function
getMailDiffSectionHeader
()
{
return
pht
(
'CHANGES TO BLOG DESCRIPTION'
);
}
public
function
newChangeDetailView
()
{
$viewer
=
$this
->
getViewer
();
return
id
(
new
PhabricatorApplicationTransactionTextDiffDetailView
())
->
setViewer
(
$viewer
)
->
setOldText
(
$this
->
getOldValue
())
->
setNewText
(
$this
->
getNewValue
());
}
public
function
newRemarkupChanges
()
{
$changes
=
array
();
$changes
[]
=
$this
->
newRemarkupChange
()
->
setOldValue
(
$this
->
getOldValue
())
->
setNewValue
(
$this
->
getNewValue
());
return
$changes
;
}
public
function
getIcon
()
{
return
'fa-file-text-o'
;
}
}
Event Timeline
Log In to Comment