Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104654599
DifferentialInlineCommentPreviewController.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
Tue, Mar 11, 06:09
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Mar 13, 06:09 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24837035
Attached To
rPH Phabricator
DifferentialInlineCommentPreviewController.php
View Options
<?php
final
class
DifferentialInlineCommentPreviewController
extends
PhabricatorInlineCommentPreviewController
{
protected
function
loadInlineComments
()
{
$viewer
=
$this
->
getViewer
();
$revision
=
id
(
new
DifferentialRevisionQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$this
->
getRevisionID
()))
->
executeOne
();
if
(!
$revision
)
{
return
array
();
}
return
id
(
new
DifferentialInlineCommentQuery
())
->
setViewer
(
$this
->
getViewer
())
->
withDrafts
(
true
)
->
withAuthorPHIDs
(
array
(
$viewer
->
getPHID
()))
->
withRevisionPHIDs
(
array
(
$revision
->
getPHID
()))
->
execute
();
}
protected
function
loadObjectOwnerPHID
()
{
$viewer
=
$this
->
getViewer
();
$revision
=
id
(
new
DifferentialRevisionQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$this
->
getRevisionID
()))
->
executeOne
();
if
(!
$revision
)
{
return
null
;
}
return
$revision
->
getAuthorPHID
();
}
private
function
getRevisionID
()
{
return
$this
->
getRequest
()->
getURIData
(
'id'
);
}
}
Event Timeline
Log In to Comment