Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F118810528
DiffusionCommitHintQuery.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, Jun 22, 08:58
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jun 24, 08:58 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26928001
Attached To
rPH Phabricator
DiffusionCommitHintQuery.php
View Options
<?php
final
class
DiffusionCommitHintQuery
extends
PhabricatorCursorPagedPolicyAwareQuery
{
private
$ids
;
private
$repositoryPHIDs
;
private
$oldCommitIdentifiers
;
public
function
withIDs
(
array
$ids
)
{
$this
->
ids
=
$ids
;
return
$this
;
}
public
function
withRepositoryPHIDs
(
array
$phids
)
{
$this
->
repositoryPHIDs
=
$phids
;
return
$this
;
}
public
function
withOldCommitIdentifiers
(
array
$identifiers
)
{
$this
->
oldCommitIdentifiers
=
$identifiers
;
return
$this
;
}
public
function
newResultObject
()
{
return
new
PhabricatorRepositoryCommitHint
();
}
protected
function
loadPage
()
{
return
$this
->
loadStandardPage
(
$this
->
newResultObject
());
}
protected
function
buildWhereClauseParts
(
AphrontDatabaseConnection
$conn
)
{
$where
=
parent
::
buildWhereClauseParts
(
$conn
);
if
(
$this
->
ids
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'id IN (%Ld)'
,
$this
->
ids
);
}
if
(
$this
->
repositoryPHIDs
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'repositoryPHID IN (%Ls)'
,
$this
->
repositoryPHIDs
);
}
if
(
$this
->
oldCommitIdentifiers
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'oldCommitIdentifier IN (%Ls)'
,
$this
->
oldCommitIdentifiers
);
}
return
$where
;
}
public
function
getQueryApplicationClass
()
{
return
'PhabricatorDiffusionApplication'
;
}
}
Event Timeline
Log In to Comment