Path: blob/master/src/applications/calendar/query/PhabricatorCalendarExternalInviteeQuery.php
12256 views
<?php12final class PhabricatorCalendarExternalInviteeQuery3extends PhabricatorCursorPagedPolicyAwareQuery {45private $ids;6private $phids;7private $names;89public function withIDs(array $ids) {10$this->ids = $ids;11return $this;12}1314public function withPHIDs(array $phids) {15$this->phids = $phids;16return $this;17}1819public function withNames(array $names) {20$this->names = $names;21return $this;22}2324public function newResultObject() {25return new PhabricatorCalendarExternalInvitee();26}2728protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {29$where = parent::buildWhereClauseParts($conn);3031if ($this->ids !== null) {32$where[] = qsprintf(33$conn,34'id IN (%Ld)',35$this->ids);36}3738if ($this->phids !== null) {39$where[] = qsprintf(40$conn,41'phid IN (%Ls)',42$this->phids);43}4445if ($this->names !== null) {46$name_indexes = array();47foreach ($this->names as $name) {48$name_indexes[] = PhabricatorHash::digestForIndex($name);49}50$where[] = qsprintf(51$conn,52'nameIndex IN (%Ls)',53$name_indexes);54}5556return $where;57}5859public function getQueryApplicationClass() {60return 'PhabricatorCalendarApplication';61}6263}646566