3 final class PhabricatorTokenReceiverQuery
4 extends PhabricatorCursorPagedPolicyAwareQuery
{
8 protected function loadPage() {
9 $table = new PhabricatorTokenCount();
10 $conn_r = $table->establishConnection('r');
14 'SELECT objectPHID, tokenCount FROM %T ORDER BY tokenCount DESC',
15 $table->getTableName());
17 $this->tokenCounts
= ipull($rows, 'tokenCount', 'objectPHID');
18 return ipull($rows, 'objectPHID');
21 protected function willFilterPage(array $phids) {
22 $objects = id(new PhabricatorObjectQuery())
23 ->setViewer($this->getViewer())
27 // Reorder the objects in the input order.
28 $objects = array_select_keys($objects, $phids);
33 public function getTokenCounts() {
34 return $this->tokenCounts
;
37 public function getQueryApplicationClass() {
38 return 'PhabricatorTokensApplication';