Differential D18888 Diff 45334 src/applications/transactions/bulk/type/BulkTokenizerParameterType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/bulk/type/BulkTokenizerParameterType.php
Show All 17 Lines | public function getPHUIXControlType() { | ||||
return 'tokenizer'; | return 'tokenizer'; | ||||
} | } | ||||
public function getPHUIXControlSpecification() { | public function getPHUIXControlSpecification() { | ||||
$template = new AphrontTokenizerTemplateView(); | $template = new AphrontTokenizerTemplateView(); | ||||
$template_markup = $template->render(); | $template_markup = $template->render(); | ||||
$datasource = $this->getDatasource(); | $datasource = $this->getDatasource(); | ||||
$limit = null; | |||||
return array( | return array( | ||||
'markup' => (string)hsprintf('%s', $template_markup), | 'markup' => (string)hsprintf('%s', $template_markup), | ||||
'config' => array( | 'config' => array( | ||||
'src' => $datasource->getDatasourceURI(), | 'src' => $datasource->getDatasourceURI(), | ||||
'browseURI' => $datasource->getBrowseURI(), | 'browseURI' => $datasource->getBrowseURI(), | ||||
'placeholder' => $datasource->getPlaceholderText(), | 'placeholder' => $datasource->getPlaceholderText(), | ||||
'limit' => $limit, | 'limit' => $datasource->getLimit(), | ||||
), | ), | ||||
'value' => null, | 'value' => null, | ||||
); | ); | ||||
} | } | ||||
} | } |