Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77784539
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
Fri, Aug 16, 09:41
Size
851 B
Mime Type
text/x-php
Expires
Sun, Aug 18, 09:41 (2 d)
Engine
blob
Format
Raw Data
Handle
19921436
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