Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F19081864
DiffusionDiffInlineCommentQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Dec 4, 8:38 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8228868
Default Alt Text
DiffusionDiffInlineCommentQuery.php (1 KB)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment