Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90381059
DifferentialRevisionSummaryTransaction.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
Fri, Nov 1, 03:29
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 3, 03:29 (2 d)
Engine
blob
Format
Raw Data
Handle
22064044
Attached To
rPH Phabricator
DifferentialRevisionSummaryTransaction.php
View Options
<?php
final
class
DifferentialRevisionSummaryTransaction
extends
DifferentialRevisionTransactionType
{
const
TRANSACTIONTYPE
=
'differential.revision.summary'
;
const
EDITKEY
=
'summary'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getSummary
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setSummary
(
$value
);
}
public
function
getTitle
()
{
return
pht
(
'%s edited the summary of this revision.'
,
$this
->
renderAuthor
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s updated the summary of %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
public
function
hasChangeDetailView
()
{
return
true
;
}
public
function
getMailDiffSectionHeader
()
{
return
pht
(
'CHANGES TO REVISION SUMMARY'
);
}
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
validateTransactions
(
$object
,
array
$xactions
)
{
return
$this
->
validateCommitMessageCorpusTransactions
(
$object
,
$xactions
,
pht
(
'Summary'
));
}
}
Event Timeline
Log In to Comment