Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93207463
DiffusionDiffInlineCommentQuery.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, Nov 27, 00:50
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Nov 29, 00:50 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22570411
Attached To
rPH Phabricator
DiffusionDiffInlineCommentQuery.php
View Options
<?php
final
class
DiffusionDiffInlineCommentQuery
extends
PhabricatorDiffInlineCommentQuery
{
private
$commitPHIDs
;
private
$hasPath
;
private
$pathIDs
;
public
function
withCommitPHIDs
(
array
$phids
)
{
$this
->
commitPHIDs
=
$phids
;
return
$this
;
}
public
function
withHasPath
(
$has_path
)
{
$this
->
hasPath
=
$has_path
;
return
$this
;
}
public
function
withPathIDs
(
array
$path_ids
)
{
$this
->
pathIDs
=
$path_ids
;
return
$this
;
}
protected
function
getTemplate
()
{
return
new
PhabricatorAuditTransactionComment
();
}
protected
function
buildWhereClauseComponents
(
AphrontDatabaseConnection
$conn_r
)
{
$where
=
parent
::
buildWhereClauseComponents
(
$conn_r
);
if
(
$this
->
commitPHIDs
!==
null
)
{
$where
[]
=
qsprintf
(
$conn_r
,
'xcomment.commitPHID IN (%Ls)'
,
$this
->
commitPHIDs
);
}
if
(
$this
->
hasPath
!==
null
)
{
if
(
$this
->
hasPath
)
{
$where
[]
=
qsprintf
(
$conn_r
,
'xcomment.pathID IS NOT NULL'
);
}
else
{
$where
[]
=
qsprintf
(
$conn_r
,
'xcomment.pathID IS NULL'
);
}
}
if
(
$this
->
pathIDs
!==
null
)
{
$where
[]
=
qsprintf
(
$conn_r
,
'xcomment.pathID IN (%Ld)'
,
$this
->
pathIDs
);
}
return
$where
;
}
}
Event Timeline
Log In to Comment