Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
1.7 kB · 77 lines
PHP
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778<?php
final class DiffusionDiffInlineCommentQuery extends PhabricatorDiffInlineCommentQuery {
private $commitPHIDs; private $pathIDs;
protected function newApplicationTransactionCommentTemplate() { return new PhabricatorAuditTransactionComment(); }
public function withCommitPHIDs(array $phids) { $this->commitPHIDs = $phids; return $this; }
public function withObjectPHIDs(array $phids) { return $this->withCommitPHIDs($phids); }
public function withPathIDs(array $path_ids) { $this->pathIDs = $path_ids; return $this; }
protected function buildInlineCommentWhereClauseParts( AphrontDatabaseConnection $conn) { $where = array(); $alias = $this->getPrimaryTableAlias();
$where[] = qsprintf( $conn, '%T.pathID IS NOT NULL', $alias);
return $where; }
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { $where = parent::buildWhereClauseParts($conn); $alias = $this->getPrimaryTableAlias();
if ($this->commitPHIDs !== null) { $where[] = qsprintf( $conn, '%T.commitPHID IN (%Ls)', $alias, $this->commitPHIDs); }
if ($this->pathIDs !== null) { $where[] = qsprintf( $conn, '%T.pathID IN (%Ld)', $alias, $this->pathIDs); }
return $where; }
protected function loadHiddenCommentIDs( $viewer_phid, array $comments) { return array(); }
protected function newInlineContextMap(array $inlines) { return array(); }
protected function newInlineContextFromCacheData(array $map) { return PhabricatorDiffInlineCommentContext::newFromCacheData($map); }
}