Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93632080
PhabricatorSearchDatasourceField.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
Sat, Nov 30, 07:27
Size
745 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 07:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22677523
Attached To
rPH Phabricator
PhabricatorSearchDatasourceField.php
View Options
<?php
final
class
PhabricatorSearchDatasourceField
extends
PhabricatorSearchTokenizerField
{
private
$datasource
;
private
$conduitParameterType
;
protected
function
newDatasource
()
{
return
id
(
clone
$this
->
datasource
);
}
public
function
setDatasource
(
PhabricatorTypeaheadDatasource
$datasource
)
{
$this
->
datasource
=
$datasource
;
return
$this
;
}
public
function
setConduitParameterType
(
ConduitParameterType
$type
)
{
$this
->
conduitParameterType
=
$type
;
return
$this
;
}
protected
function
newConduitParameterType
()
{
if
(!
$this
->
conduitParameterType
)
{
return
id
(
new
ConduitStringListParameterType
())
->
setAllowEmptyList
(
false
);
}
return
$this
->
conduitParameterType
;
}
}
Event Timeline
Log In to Comment