Differential D12027 Diff 28958 src/applications/differential/query/DifferentialDiffInlineCommentQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/query/DifferentialDiffInlineCommentQuery.php
- This file was added.
| <?php | |||||
| final class DifferentialDiffInlineCommentQuery | |||||
| extends PhabricatorDiffInlineCommentQuery { | |||||
| private $revisionPHIDs; | |||||
| public function withRevisionPHIDs(array $phids) { | |||||
| $this->revisionPHIDs = $phids; | |||||
| return $this; | |||||
| } | |||||
| protected function getTemplate() { | |||||
| return new DifferentialTransactionComment(); | |||||
| } | |||||
| protected function buildWhereClauseComponents( | |||||
| AphrontDatabaseConnection $conn_r) { | |||||
| $where = parent::buildWhereClauseComponents($conn_r); | |||||
| if ($this->revisionPHIDs !== null) { | |||||
| $where[] = qsprintf( | |||||
| $conn_r, | |||||
| 'revisionPHID IN (%Ls)', | |||||
| $this->revisionPHIDs); | |||||
| } | |||||
| return $where; | |||||
| } | |||||
| } | |||||