Path: blob/master/src/applications/diffusion/query/DiffusionDiffInlineCommentQuery.php
12242 views
<?php12final class DiffusionDiffInlineCommentQuery3extends PhabricatorDiffInlineCommentQuery {45private $commitPHIDs;6private $pathIDs;78protected function newApplicationTransactionCommentTemplate() {9return new PhabricatorAuditTransactionComment();10}1112public function withCommitPHIDs(array $phids) {13$this->commitPHIDs = $phids;14return $this;15}1617public function withObjectPHIDs(array $phids) {18return $this->withCommitPHIDs($phids);19}2021public function withPathIDs(array $path_ids) {22$this->pathIDs = $path_ids;23return $this;24}2526protected function buildInlineCommentWhereClauseParts(27AphrontDatabaseConnection $conn) {28$where = array();29$alias = $this->getPrimaryTableAlias();3031$where[] = qsprintf(32$conn,33'%T.pathID IS NOT NULL',34$alias);3536return $where;37}3839protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {40$where = parent::buildWhereClauseParts($conn);41$alias = $this->getPrimaryTableAlias();4243if ($this->commitPHIDs !== null) {44$where[] = qsprintf(45$conn,46'%T.commitPHID IN (%Ls)',47$alias,48$this->commitPHIDs);49}5051if ($this->pathIDs !== null) {52$where[] = qsprintf(53$conn,54'%T.pathID IN (%Ld)',55$alias,56$this->pathIDs);57}5859return $where;60}6162protected function loadHiddenCommentIDs(63$viewer_phid,64array $comments) {65return array();66}6768protected function newInlineContextMap(array $inlines) {69return array();70}7172protected function newInlineContextFromCacheData(array $map) {73return PhabricatorDiffInlineCommentContext::newFromCacheData($map);74}7576}777879