Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/query/PonderQuestionQuery.php
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
return $where; | return $where; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PonderQuestion(); | return new PonderQuestion(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage(new PonderQuestion()); | |||||
} | |||||
protected function willFilterPage(array $questions) { | protected function willFilterPage(array $questions) { | ||||
$phids = mpull($questions, 'getPHID'); | $phids = mpull($questions, 'getPHID'); | ||||
if ($this->needAnswers) { | if ($this->needAnswers) { | ||||
$aquery = id(new PonderAnswerQuery()) | $aquery = id(new PonderAnswerQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->setOrderVector(array('-id')) | ->setOrderVector(array('-id')) | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |