Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/query/PhabricatorDashboardPanelQuery.php
Show All 28 Lines | public function withPanelTypes(array $types) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function withAuthorPHIDs(array $authors) { | public function withAuthorPHIDs(array $authors) { | ||||
$this->authorPHIDs = $authors; | $this->authorPHIDs = $authors; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function withNameNgrams($ngrams) { | |||||
return $this->withNgramsConstraint( | |||||
id(new PhabricatorDashboardPanelNgrams()), | |||||
$ngrams); | |||||
} | |||||
protected function loadPage() { | protected function loadPage() { | ||||
return $this->loadStandardPage($this->newResultObject()); | return $this->loadStandardPage($this->newResultObject()); | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
// TODO: If we don't do this, SearchEngine explodes when trying to | // TODO: If we don't do this, SearchEngine explodes when trying to | ||||
// enumerate custom fields. For now, just give the panel a default panel | // enumerate custom fields. For now, just give the panel a default panel | ||||
// type so custom fields work. In the long run, we may want to find a | // type so custom fields work. In the long run, we may want to find a | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |