methods = $methods; return $this; } public function loadPage() { $table = new PhabricatorConduitMethodCallLog(); $conn_r = $table->establishConnection('r'); $data = queryfx_all( $conn_r, 'SELECT * FROM %T %Q %Q %Q', $table->getTableName(), $this->buildWhereClause($conn_r), $this->buildOrderClause($conn_r), $this->buildLimitClause($conn_r)); return $table->loadAllFromArray($data);; } private function buildWhereClause(AphrontDatabaseConnection $conn_r) { $where = array(); if ($this->methods) { $where[] = qsprintf( $conn_r, 'method IN (%Ls)', $this->methods); } $where[] = $this->buildPagingClause($conn_r); return $this->formatWhereClause($where); } }