Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/query/PhabricatorPasteQuery.php
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | public function withStatuses(array $statuses) { | ||||
$this->statuses = $statuses; | $this->statuses = $statuses; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorPaste(); | return new PhabricatorPaste(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage(new PhabricatorPaste()); | |||||
} | |||||
protected function didFilterPage(array $pastes) { | protected function didFilterPage(array $pastes) { | ||||
if ($this->needRawContent) { | if ($this->needRawContent) { | ||||
$pastes = $this->loadRawContent($pastes); | $pastes = $this->loadRawContent($pastes); | ||||
} | } | ||||
if ($this->needContent) { | if ($this->needContent) { | ||||
$pastes = $this->loadContent($pastes); | $pastes = $this->loadContent($pastes); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 302 Lines • Show Last 20 Lines |