Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96993527
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
Wed, Jan 1, 10:42
Size
754 B
Mime Type
text/x-php
Expires
Fri, Jan 3, 10:42 (2 d)
Engine
blob
Format
Raw Data
Handle
23307859
Attached To
rPH Phabricator
DifferentialInlineCommentPreviewController.php
View Options
<?php
final
class
DifferentialInlineCommentPreviewController
extends
PhabricatorInlineCommentPreviewController
{
protected
function
loadInlineComments
()
{
$viewer
=
$this
->
getViewer
();
return
id
(
new
DifferentialInlineCommentQuery
())
->
withDraftComments
(
$viewer
->
getPHID
(),
$this
->
getRevisionID
())
->
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