Ejemplo n.º 1
0
 public function renderDefault($page = 1)
 {
     $empty = FALSE;
     if ($this->fulltextQuery) {
         $this->template->listOfUsers = $this->mainManager->findFulltext($this->fulltextQuery, $this->getUser());
     } else {
         $this->template->listOfUsers = $this->mainManager->findAll($this->getUser());
         if (count($this->template->listOfUsers) === 1) {
             $empty = TRUE;
         }
     }
     $this->template->fulltextQuery = $this->fulltextQuery;
     $this->template->countOfDeactivatedUsers = $this->mainManager->findAllDeactivated($this->getUser())->count();
     $this->template->empty = $empty;
 }