Differential D16155 Diff 38866 src/applications/diffusion/typeahead/DiffusionTaggedRepositoriesFunctionDatasource.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/typeahead/DiffusionTaggedRepositoriesFunctionDatasource.php
Show All 37 Lines | final class DiffusionTaggedRepositoriesFunctionDatasource | ||||
protected function didLoadResults(array $results) { | protected function didLoadResults(array $results) { | ||||
foreach ($results as $result) { | foreach ($results as $result) { | ||||
$result | $result | ||||
->setTokenType(PhabricatorTypeaheadTokenView::TYPE_FUNCTION) | ->setTokenType(PhabricatorTypeaheadTokenView::TYPE_FUNCTION) | ||||
->setColor(null) | ->setColor(null) | ||||
->setPHID('tagged('.$result->getPHID().')') | ->setPHID('tagged('.$result->getPHID().')') | ||||
->setDisplayName(pht('Tagged: %s', $result->getDisplayName())) | ->setDisplayName(pht('Tagged: %s', $result->getDisplayName())) | ||||
->setName('tagged '.$result->getName()); | ->setName('tagged '.$result->getName()) | ||||
->resetAttributes() | |||||
->addAttribute(pht('Function')) | |||||
->addAttribute(pht('Select repositories tagged with this project.')); | |||||
} | } | ||||
return $results; | return $results; | ||||
} | } | ||||
protected function evaluateFunction($function, array $argv_list) { | protected function evaluateFunction($function, array $argv_list) { | ||||
$phids = array(); | $phids = array(); | ||||
foreach ($argv_list as $argv) { | foreach ($argv_list as $argv) { | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |