Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103053415
PhabricatorNamedQueryConfigQuery.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, Feb 26, 21:47
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Feb 28, 21:47 (2 d)
Engine
blob
Format
Raw Data
Handle
24485744
Attached To
rPH Phabricator
PhabricatorNamedQueryConfigQuery.php
View Options
<?php
final
class
PhabricatorNamedQueryConfigQuery
extends
PhabricatorCursorPagedPolicyAwareQuery
{
private
$ids
;
private
$engineClassNames
;
private
$scopePHIDs
;
public
function
withIDs
(
array
$ids
)
{
$this
->
ids
=
$ids
;
return
$this
;
}
public
function
withScopePHIDs
(
array
$scope_phids
)
{
$this
->
scopePHIDs
=
$scope_phids
;
return
$this
;
}
public
function
withEngineClassNames
(
array
$engine_class_names
)
{
$this
->
engineClassNames
=
$engine_class_names
;
return
$this
;
}
public
function
newResultObject
()
{
return
new
PhabricatorNamedQueryConfig
();
}
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
->
engineClassNames
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'engineClassName IN (%Ls)'
,
$this
->
engineClassNames
);
}
if
(
$this
->
scopePHIDs
!==
null
)
{
$where
[]
=
qsprintf
(
$conn
,
'scopePHID IN (%Ls)'
,
$this
->
scopePHIDs
);
}
return
$where
;
}
public
function
getQueryApplicationClass
()
{
return
'PhabricatorSearchApplication'
;
}
}
Event Timeline
Log In to Comment