Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101293490
PonderEditor.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, Feb 7, 13:25
Size
882 B
Mime Type
text/x-php
Expires
Sun, Feb 9, 13:25 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24131956
Attached To
rPH Phabricator
PonderEditor.php
View Options
<?php
abstract
class
PonderEditor
extends
PhabricatorApplicationTransactionEditor
{
public
function
getEditorApplicationClass
()
{
return
'PhabricatorPonderApplication'
;
}
protected
function
shouldPublishFeedStory
(
PhabricatorLiskDAO
$object
,
array
$xactions
)
{
return
true
;
}
protected
function
buildMailTemplate
(
PhabricatorLiskDAO
$object
)
{
$id
=
$object
->
getID
();
$title
=
$object
->
getTitle
();
$original_title
=
$object
->
getOriginalTitle
();
return
id
(
new
PhabricatorMetaMTAMail
())
->
setSubject
(
"Q{$id}: {$title}"
)
->
addHeader
(
'Thread-Topic'
,
"Q{$id}: {$original_title}"
);
}
protected
function
getMailTo
(
PhabricatorLiskDAO
$object
)
{
return
array
(
$object
->
getAuthorPHID
(),
$this
->
requireActor
()->
getPHID
(),
);
}
protected
function
getMailSubjectPrefix
()
{
return
'[Ponder]'
;
}
}
Event Timeline
Log In to Comment