Changeset View
Changeset View
Standalone View
Standalone View
src/applications/badges/query/PhabricatorBadgesAwardQuery.php
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | public function withBadgeStatuses(array $statuses) { | ||||
$this->badgeStatuses = $statuses; | $this->badgeStatuses = $statuses; | ||||
return $this; | return $this; | ||||
} | } | ||||
private function shouldJoinBadge() { | private function shouldJoinBadge() { | ||||
return (bool)$this->badgeStatuses; | return (bool)$this->badgeStatuses; | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorBadgesAward(); | return new PhabricatorBadgesAward(); | ||||
} | } | ||||
protected function getPrimaryTableAlias() { | protected function getPrimaryTableAlias() { | ||||
return 'badges_award'; | return 'badges_award'; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |