Differential D21558 Diff 51319 src/applications/differential/query/DifferentialChangesetSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/query/DifferentialChangesetSearchEngine.php
Show All 32 Lines | if ($this->diff) { | ||||
$query->withDiffs(array($this->diff)); | $query->withDiffs(array($this->diff)); | ||||
} | } | ||||
return $query; | return $query; | ||||
} | } | ||||
protected function buildQueryFromParameters(array $map) { | protected function buildQueryFromParameters(array $map) { | ||||
$query = $this->newQuery(); | $query = $this->newQuery(); | ||||
if ($map['diffPHIDs']) { | |||||
$query->withDiffPHIDs($map['diffPHIDs']); | |||||
} | |||||
return $query; | return $query; | ||||
} | } | ||||
protected function buildCustomSearchFields() { | protected function buildCustomSearchFields() { | ||||
return array(); | return array( | ||||
id(new PhabricatorPHIDsSearchField()) | |||||
->setLabel(pht('Diffs')) | |||||
->setKey('diffPHIDs') | |||||
->setAliases(array('diff', 'diffs', 'diffPHID')) | |||||
->setDescription( | |||||
pht('Find changesets attached to a particular diff.')), | |||||
); | |||||
} | } | ||||
protected function getURI($path) { | protected function getURI($path) { | ||||
$diff = $this->getDiff(); | $diff = $this->getDiff(); | ||||
if ($diff) { | if ($diff) { | ||||
return '/differential/diff/'.$diff->getID().'/changesets/'.$path; | return '/differential/diff/'.$diff->getID().'/changesets/'.$path; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |