Page MenuHomePhabricator
Paste P1186

pholio project
ActivePublic

Authored by skyronic on Jun 25 2014, 6:43 AM.
private function buildWhereClause(AphrontDatabaseConnection $conn_r) {
$where = array();
$where[] = $this->buildPagingClause($conn_r);
if ($this->ids) {
$where[] = qsprintf(
$conn_r,
'id IN (%Ld)',
$this->ids);
}
if ($this->phids) {
$where[] = qsprintf(
$conn_r,
'phid IN (%Ls)',
$this->phids);
}
if ($this->authorPHIDs) {
$where[] = qsprintf(
$conn_r,
'authorPHID in (%Ls)',
$this->authorPHIDs);
}
if ($this->projectPHIDs) {
$where[] = qsprintf(
$conn_r,
'project.PHID in (%Ls)',
$this->projectPHIDs);
}
if ($this->statuses) {
$where[] = qsprintf(
$conn_r,
'status IN (%Ls)',
$this->statuses);
}
return $this->formatWhereClause($where);
}

Event Timeline

skyronic changed the title of this paste from untitled to pholio project.
skyronic updated the paste's language from autodetect to autodetect.