Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100814393
PholioInlineViewController.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, Feb 3, 00:03
Size
851 B
Mime Type
text/x-php
Expires
Wed, Feb 5, 00:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23969075
Attached To
rPH Phabricator
PholioInlineViewController.php
View Options
<?php
/**
* @group pholio
*/
final
class
PholioInlineViewController
extends
PholioController
{
private
$id
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'id'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$inline_comment
=
id
(
new
PholioTransactionComment
())->
load
(
$this
->
id
);
$handle
=
head
(
$this
->
loadViewerHandles
(
array
(
$inline_comment
->
getAuthorPHID
())));
$inline_view
=
id
(
new
PholioInlineCommentView
())
->
setUser
(
$user
)
->
setHandle
(
$handle
)
->
setInlineComment
(
$inline_comment
)
->
setEngine
(
new
PhabricatorMarkupEngine
());
return
id
(
new
AphrontAjaxResponse
())->
setContent
(
$inline_comment
->
toDictionary
()
+
array
(
'contentHTML'
=>
$inline_view
->
render
(),
));
}
}
Event Timeline
Log In to Comment