Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100741389
DifferentialCommentQuery.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
Sun, Feb 2, 09:03
Size
797 B
Mime Type
text/x-php
Expires
Tue, Feb 4, 09:03 (2 d)
Engine
blob
Format
Raw Data
Handle
24021060
Attached To
rPH Phabricator
DifferentialCommentQuery.php
View Options
<?php
/**
* Temporary wrapper for transitioning Differential to ApplicationTransactions.
*/
final
class
DifferentialCommentQuery
extends
PhabricatorOffsetPagedQuery
{
private
$revisionPHIDs
;
public
function
withRevisionPHIDs
(
array
$phids
)
{
$this
->
revisionPHIDs
=
$phids
;
return
$this
;
}
public
function
execute
()
{
// TODO: We're getting rid of this, it is the bads.
$viewer
=
PhabricatorUser
::
getOmnipotentUser
();
$xactions
=
id
(
new
DifferentialTransactionQuery
())
->
setViewer
(
$viewer
)
->
withObjectPHIDs
(
$this
->
revisionPHIDs
)
->
needComments
(
true
)
->
execute
();
$results
=
array
();
foreach
(
$xactions
as
$xaction
)
{
$results
[]
=
DifferentialComment
::
newFromModernTransaction
(
$xaction
);
}
return
$results
;
}
}
Event Timeline
Log In to Comment