3 final class PhabricatorStandardCustomFieldDatasource
4 extends PhabricatorStandardCustomFieldTokenizer
{
6 public function getFieldType() {
10 public function getDatasource() {
11 $parameters = $this->getFieldConfigValue('datasource.parameters', array());
13 $class = $this->getFieldConfigValue('datasource.class');
14 $parent = 'PhabricatorTypeaheadDatasource';
15 if (!is_subclass_of($class, $parent)) {
18 'Configured datasource class "%s" must be a valid subclass of '.
24 return newv($class, array())
25 ->setParameters($parameters);