Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895182
PholioInlineListController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
939 B
Referenced Files
None
Subscribers
None
PholioInlineListController.php
View Options
<?php
final
class
PholioInlineListController
extends
PholioController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
(
)
;
$id
=
$request
->
getURIData
(
'id'
)
;
$image
=
id
(
new
PholioImageQuery
(
)
)
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
)
)
->
executeOne
(
)
;
if
(
!
$image
)
{
return
new
Aphront404Response
(
)
;
}
$inline_comments
=
id
(
new
PholioTransactionComment
(
)
)
->
loadAllWhere
(
'imageid = %d AND (transactionphid IS NOT NULL
OR (authorphid = %s AND transactionphid IS NULL))'
,
$id
,
$viewer
->
getPHID
(
)
)
;
$author_phids
=
mpull
(
$inline_comments
,
'getAuthorPHID'
)
;
$authors
=
$this
->
loadViewerHandles
(
$author_phids
)
;
$inlines
=
array
(
)
;
foreach
(
$inline_comments
as
$inline_comment
)
{
$inlines
[
]
=
$inline_comment
->
toDictionary
(
)
;
}
return
id
(
new
AphrontAjaxResponse
(
)
)
->
setContent
(
$inlines
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:03 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128731
Default Alt Text
PholioInlineListController.php (939 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment