Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F509570
PholioInlineViewController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
977 B
Referenced Files
None
Subscribers
None
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
=
PhabricatorObjectHandleData
::
loadOneHandle
(
$inline_comment
->
getAuthorPHID
());
$inline_view
=
id
(
new
PholioInlineCommentView
())
->
setHandle
(
$handle
)
->
setInlineComment
(
$inline_comment
);
if
(
$inline_comment
->
getEditPolicy
(
PhabricatorPolicyCapability
::
CAN_EDIT
)
==
$user
->
getPHID
()
&&
$inline_comment
->
getTransactionPHID
()
===
null
)
{
$inline_view
->
setEditable
(
true
);
}
return
id
(
new
AphrontAjaxResponse
())->
setContent
(
$inline_comment
->
toDictionary
()
+
array
(
'contentHTML'
=>
$inline_view
->
render
(),
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 11, 9:30 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
104248
Default Alt Text
PholioInlineViewController.php (977 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment