protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { $where = parent::buildWhereClauseParts($conn); if ($this->ids !== null) { $where[] = qsprintf($conn, 'network.id IN (%Ld)', $this->ids); } if ($this->phids !== null) { $where[] = qsprintf($conn, 'network.phid IN (%Ls)', $this->phids); } return $where; }
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { $where = parent::buildWhereClauseParts($conn); if ($this->ids !== null) { $where[] = qsprintf($conn, 'id IN (%Ld)', $this->ids); } if ($this->phids !== null) { $where[] = qsprintf($conn, 'phid IN (%Ls)', $this->phids); } if ($this->servicePHIDs !== null) { $where[] = qsprintf($conn, 'servicePHID IN (%Ls)', $this->servicePHIDs); } if ($this->devicePHIDs !== null) { $where[] = qsprintf($conn, 'devicePHID IN (%Ls)', $this->devicePHIDs); } if ($this->interfacePHIDs !== null) { $where[] = qsprintf($conn, 'interfacePHID IN (%Ls)', $this->interfacePHIDs); } return $where; }
public function getBuiltinOrders() { return array('name' => array('vector' => array('name'), 'name' => pht('Service Name'))) + parent::getBuiltinOrders(); }
public function getOrderableColumns() { return parent::getOrderableColumns() + array('name' => array('table' => 'device', 'column' => 'name', 'type' => 'string', 'reverse' => true)); }