Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93222187
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
Wed, Nov 27, 03:33
Size
745 B
Mime Type
text/x-php
Expires
Fri, Nov 29, 03:33 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22596195
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