Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F958714
DiffusionInlineCommentPreviewController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
712 B
Referenced Files
None
Subscribers
None
DiffusionInlineCommentPreviewController.php
View Options
<?php
final
class
DiffusionInlineCommentPreviewController
extends
PhabricatorInlineCommentPreviewController
{
protected
function
loadInlineComments
()
{
$viewer
=
$this
->
getViewer
();
return
PhabricatorAuditInlineComment
::
loadDraftComments
(
$viewer
,
$this
->
getCommitPHID
());
}
protected
function
loadObjectOwnerPHID
()
{
$viewer
=
$this
->
getViewer
();
$commit
=
id
(
new
DiffusionCommitQuery
())
->
setViewer
(
$viewer
)
->
withPHIDs
(
array
(
$this
->
getCommitPHID
()))
->
executeOne
();
if
(!
$commit
)
{
return
null
;
}
return
$commit
->
getAuthorPHID
();
}
private
function
getCommitPHID
()
{
return
$this
->
getRequest
()->
getURIData
(
'phid'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 9:20 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
214008
Default Alt Text
DiffusionInlineCommentPreviewController.php (712 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment