Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92774918
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
Sat, Nov 23, 15:07
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Nov 25, 15:07 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22503192
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