Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/field/PhabricatorSearchDatasourceField.php
<?php | <?php | ||||
final class PhabricatorSearchDatasourceField | final class PhabricatorSearchDatasourceField | ||||
extends PhabricatorSearchTokenizerField { | extends PhabricatorSearchTokenizerField { | ||||
private $datasource; | private $datasource; | ||||
protected function newDatasource() { | protected function newDatasource() { | ||||
return id(clone $this->datasource); | return id(clone $this->datasource); | ||||
} | } | ||||
public function setDatasource(PhabricatorTypeaheadDatasource $datasource) { | public function setDatasource(PhabricatorTypeaheadDatasource $datasource) { | ||||
$this->datasource = $datasource; | $this->datasource = $datasource; | ||||
return $this; | return $this; | ||||
} | } | ||||
protected function newConduitParameterType() { | |||||
return new ConduitStringListParameterType(); | |||||
} | |||||
} | } |