Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101517221
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
Tue, Feb 11, 05:19
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Feb 13, 05:19 (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
24173863
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