Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98184412
PonderCommentMail.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, Jan 10, 19:42
Size
866 B
Mime Type
text/x-php
Expires
Sun, Jan 12, 19:42 (2 d)
Engine
blob
Format
Raw Data
Handle
23502771
Attached To
rPH Phabricator
PonderCommentMail.php
View Options
<?php
final
class
PonderCommentMail
extends
PonderMail
{
public
function
__construct
(
PonderQuestion
$question
,
PonderComment
$target
,
PhabricatorUser
$actor
)
{
$this
->
setQuestion
(
$question
);
$this
->
setTarget
(
$target
);
$this
->
setActorHandle
(
$actor
);
$this
->
setActor
(
$actor
);
}
protected
function
renderVaryPrefix
()
{
return
"[Commented]"
;
}
protected
function
renderBody
()
{
$question
=
$this
->
getQuestion
();
$target
=
$this
->
getTarget
();
$actor
=
$this
->
getActorName
();
$name
=
$question
->
getTitle
();
$body
=
array
();
$body
[]
=
"{$actor} commented on a question that you are subscribed to."
;
$body
[]
=
null
;
$content
=
$target
->
getContent
();
if
(
strlen
(
$content
))
{
$body
[]
=
$this
->
formatText
(
$content
);
$body
[]
=
null
;
}
return
implode
(
"
\n
"
,
$body
);
}
}
Event Timeline
Log In to Comment