mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 03:02:43 +01:00
32 lines
660 B
PHP
32 lines
660 B
PHP
|
<?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;
|
||
|
}
|
||
|
|
||
|
}
|