Differential D16094 Diff 38724 src/applications/project/typeahead/PhabricatorProjectLogicalOrNotDatasource.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/typeahead/PhabricatorProjectLogicalOrNotDatasource.php
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | foreach ($results as $result) { | ||||
->setTokenType(PhabricatorTypeaheadTokenView::TYPE_FUNCTION) | ->setTokenType(PhabricatorTypeaheadTokenView::TYPE_FUNCTION) | ||||
->setIcon('fa-asterisk') | ->setIcon('fa-asterisk') | ||||
->setColor(null); | ->setColor(null); | ||||
if ($return_any) { | if ($return_any) { | ||||
$return[] = id(clone $result) | $return[] = id(clone $result) | ||||
->setPHID('any('.$result->getPHID().')') | ->setPHID('any('.$result->getPHID().')') | ||||
->setDisplayName(pht('In Any: %s', $result->getDisplayName())) | ->setDisplayName(pht('In Any: %s', $result->getDisplayName())) | ||||
->setName($result->getName().' any'); | ->setName('any '.$result->getName()); | ||||
} | } | ||||
if ($return_not) { | if ($return_not) { | ||||
$return[] = id(clone $result) | $return[] = id(clone $result) | ||||
->setPHID('not('.$result->getPHID().')') | ->setPHID('not('.$result->getPHID().')') | ||||
->setDisplayName(pht('Not In: %s', $result->getDisplayName())) | ->setDisplayName(pht('Not In: %s', $result->getDisplayName())) | ||||
->setName($result->getName().' not'); | ->setName('not '.$result->getName()); | ||||
} | } | ||||
} | } | ||||
return $return; | return $return; | ||||
} | } | ||||
protected function evaluateFunction($function, array $argv_list) { | protected function evaluateFunction($function, array $argv_list) { | ||||
$phids = array(); | $phids = array(); | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |