Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/query/PhabricatorFileAttachmentQuery.php
Show All 26 Lines | public function needFiles($need) { | ||||
$this->needFiles = $need; | $this->needFiles = $need; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhabricatorFileAttachment(); | return new PhabricatorFileAttachment(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
$where = parent::buildWhereClauseParts($conn); | $where = parent::buildWhereClauseParts($conn); | ||||
if ($this->objectPHIDs !== null) { | if ($this->objectPHIDs !== null) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'attachments.objectPHID IN (%Ls)', | 'attachments.objectPHID IN (%Ls)', | ||||
$this->objectPHIDs); | $this->objectPHIDs); | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |