Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120351718
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
Thu, Jul 3, 17:27
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Jul 5, 17:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27176355
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