Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F545123
DiffusionDiffInlineCommentQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
DiffusionDiffInlineCommentQuery.php
View Options
<?php
final
class
DiffusionDiffInlineCommentQuery
extends
PhabricatorDiffInlineCommentQuery
{
private
$commitPHIDs
;
private
$pathIDs
;
protected
function
newApplicationTransactionCommentTemplate
()
{
return
new
PhabricatorAuditTransactionComment
();
}
public
function
withCommitPHIDs
(
array
$phids
)
{
$this
->
commitPHIDs
=
$phids
;
return
$this
;
}
public
function
withObjectPHIDs
(
array
$phids
)
{
return
$this
->
withCommitPHIDs
(
$phids
);
}
public
function
withPathIDs
(
array
$path_ids
)
{
$this
->
pathIDs
=
$path_ids
;
return
$this
;
}
protected
function
buildInlineCommentWhereClauseParts
(
AphrontDatabaseConnection
$conn
)
{
$where
=
array
();
$alias
=
$this
->
getPrimaryTableAlias
();
$where
[]
=
qsprintf
(
$conn
,
'%T.pathID IS NOT NULL'
,
$alias
);
return
$where
;
}
protected
function
buildWhereClauseParts
(
AphrontDatabaseConnection
$conn
)
{
$where
=
parent
::
buildWhereClauseParts
(
$conn
);
$alias
=
$this
->
getPrimaryTableAlias
();
if
(
$this
->
commitPHIDs
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'%T.commitPHID IN (%Ls)'
,
$alias
,
$this
->
commitPHIDs
);
}
if
(
$this
->
pathIDs
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'%T.pathID IN (%Ld)'
,
$alias
,
$this
->
pathIDs
);
}
return
$where
;
}
protected
function
loadHiddenCommentIDs
(
$viewer_phid
,
array
$comments
)
{
return
array
();
}
protected
function
newInlineContextMap
(
array
$inlines
)
{
return
array
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 12:38 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122409
Default Alt Text
DiffusionDiffInlineCommentQuery.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment