Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96944867
PonderAnsweredMail.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
Wed, Jan 1, 00:39
Size
861 B
Mime Type
text/x-php
Expires
Fri, Jan 3, 00:39 (2 d)
Engine
blob
Format
Raw Data
Handle
23296552
Attached To
rPH Phabricator
PonderAnsweredMail.php
View Options
<?php
final
class
PonderAnsweredMail
extends
PonderMail
{
public
function
__construct
(
PonderQuestion
$question
,
PonderAnswer
$target
,
PhabricatorUser
$actor
)
{
$this
->
setQuestion
(
$question
);
$this
->
setTarget
(
$target
);
$this
->
setActorHandle
(
$actor
);
$this
->
setActor
(
$actor
);
}
protected
function
renderVaryPrefix
()
{
return
"[Answered]"
;
}
protected
function
renderBody
()
{
$question
=
$this
->
getQuestion
();
$target
=
$this
->
getTarget
();
$actor
=
$this
->
getActorName
();
$name
=
$question
->
getTitle
();
$body
=
array
();
$body
[]
=
"{$actor} answered 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