3 final class PhabricatorConfigEntryQuery
4 extends PhabricatorCursorPagedPolicyAwareQuery
{
9 public function withIDs($ids) {
14 public function withPHIDs($phids) {
15 $this->phids
= $phids;
19 protected function loadPage() {
20 $table = new PhabricatorConfigEntry();
21 $conn_r = $table->establishConnection('r');
25 'SELECT * FROM %T %Q %Q %Q',
26 $table->getTableName(),
27 $this->buildWhereClause($conn_r),
28 $this->buildOrderClause($conn_r),
29 $this->buildLimitClause($conn_r));
31 return $table->loadAllFromArray($data);
34 protected function buildWhereClause(AphrontDatabaseConnection
$conn) {
37 if ($this->ids
!== null) {
44 if ($this->phids
!== null) {
51 $where[] = $this->buildPagingClause($conn);
53 return $this->formatWhereClause($conn, $where);
56 public function getQueryApplicationClass() {
57 return 'PhabricatorConfigApplication';