Example #1
0
 /**
  * @return User[]|bool
  */
 private function getUsers()
 {
     $ascending = false;
     $no_users = 10;
     if ($this->isParam()) {
         if ($this->contains($this->getAllParams(), ['global', 'all', 'every'])) {
             $this->chat = NULL;
             $this->global = true;
         }
         if ($this->contains($this->getAllParams(), ['bottom', 'last'])) {
             $ascending = true;
         }
     }
     return Query::getUsersByLevel($this->db, $this->chat, true, $ascending, $no_users);
     //return Query::getUsersByMoneyAndLevel($this->db, $this->chat, true, $ascending, $no_users);
 }