Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112135002
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
Thu, May 8, 00:40
Size
1 KB
Mime Type
text/x-php
Expires
Sat, May 10, 00:40 (2 d)
Engine
blob
Format
Raw Data
Handle
26021201
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
()))
->
needHidden
(
true
)
->
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