Path: blob/master/src/applications/metamta/query/PhabricatorMetaMTAMailPropertiesQuery.php
12256 views
<?php12final class PhabricatorMetaMTAMailPropertiesQuery3extends PhabricatorCursorPagedPolicyAwareQuery {45private $ids;6private $objectPHIDs;78public function withIDs(array $ids) {9$this->ids = $ids;10return $this;11}1213public function withObjectPHIDs(array $object_phids) {14$this->objectPHIDs = $object_phids;15return $this;16}1718public function newResultObject() {19return new PhabricatorMetaMTAMailProperties();20}2122protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {23$where = parent::buildWhereClauseParts($conn);2425if ($this->ids !== null) {26$where[] = qsprintf(27$conn,28'id IN (%Ld)',29$this->ids);30}3132if ($this->objectPHIDs !== null) {33$where[] = qsprintf(34$conn,35'objectPHID IN (%Ls)',36$this->objectPHIDs);37}3839return $where;40}4142public function getQueryApplicationClass() {43return 'PhabricatorMetaMTAApplication';44}4546}474849