Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75997396
DifferentialNewDiffMail.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, Aug 5, 15:27
Size
851 B
Mime Type
text/x-php
Expires
Wed, Aug 7, 15:27 (2 d)
Engine
blob
Format
Raw Data
Handle
19645730
Attached To
rPH Phabricator
DifferentialNewDiffMail.php
View Options
<?php
final
class
DifferentialNewDiffMail
extends
DifferentialReviewRequestMail
{
protected
function
renderVaryPrefix
()
{
$revision
=
$this
->
getRevision
();
$line_count
=
$revision
->
getLineCount
();
$lines
=
pht
(
'%d line(s)'
,
$line_count
);
if
(
$this
->
isFirstMailToRecipients
())
{
$verb
=
'Request'
;
}
else
{
$verb
=
'Updated'
;
}
return
"[{$verb}, {$lines}]"
;
}
protected
function
renderBody
()
{
$actor
=
$this
->
getActorName
();
$name
=
$this
->
getRevision
()->
getTitle
();
$body
=
array
();
if
(
$this
->
isFirstMailToRecipients
())
{
$body
[]
=
"{$actor} requested code review of
\"
{$name}
\"
."
;
}
else
{
$body
[]
=
"{$actor} updated the revision
\"
{$name}
\"
."
;
}
$body
[]
=
null
;
$body
[]
=
$this
->
renderReviewRequestBody
();
return
implode
(
"
\n
"
,
$body
);
}
}
Event Timeline
Log In to Comment