Differential D12482 Diff 29969 src/applications/typeahead/datasource/PhabricatorTypeaheadCompositeDatasource.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/typeahead/datasource/PhabricatorTypeaheadCompositeDatasource.php
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | if ($this->usable === null) { | ||||
$usable[] = $source; | $usable[] = $source; | ||||
} | } | ||||
$this->usable = $usable; | $this->usable = $usable; | ||||
} | } | ||||
return $this->usable; | return $this->usable; | ||||
} | } | ||||
public function getAllDatasourceFunctions() { | |||||
$results = parent::getAllDatasourceFunctions(); | |||||
foreach ($this->getUsableDatasources() as $source) { | |||||
$results += $source->getAllDatasourceFunctions(); | |||||
} | |||||
return $results; | |||||
} | |||||
protected function didEvaluateTokens(array $results) { | protected function didEvaluateTokens(array $results) { | ||||
foreach ($this->getUsableDatasources() as $source) { | foreach ($this->getUsableDatasources() as $source) { | ||||
$results = $source->didEvaluateTokens($results); | $results = $source->didEvaluateTokens($results); | ||||
} | } | ||||
return $results; | return $results; | ||||
} | } | ||||
protected function canEvaluateFunction($function) { | protected function canEvaluateFunction($function) { | ||||
Show All 31 Lines |