Page MenuHomec4science

NuanceSourceQuery.php
No OneTemporary

File Metadata

Created
Mon, May 12, 01:02

NuanceSourceQuery.php

<?php
final class NuanceSourceQuery
extends NuanceQuery {
private $ids;
private $phids;
private $types;
public function withIDs(array $ids) {
$this->ids = $ids;
return $this;
}
public function withPHIDs(array $phids) {
$this->phids = $phids;
return $this;
}
public function withTypes($types) {
$this->types = $types;
return $this;
}
public function newResultObject() {
return new NuanceSource();
}
protected function loadPage() {
return $this->loadStandardPage($this->newResultObject());
}
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);
if ($this->types !== null) {
$where[] = qsprintf(
$conn,
'type IN (%Ls)',
$this->types);
}
if ($this->ids !== null) {
$where[] = qsprintf(
$conn,
'id IN (%Ld)',
$this->ids);
}
if ($this->phids !== null) {
$where[] = qsprintf(
$conn,
'phid IN (%Ls)',
$this->phids);
}
return $where;
}
}

Event Timeline