Beispiel #1
0
 function showContent()
 {
     $offset = ($this->page - 1) * PROFILES_PER_PAGE;
     $limit = PROFILES_PER_PAGE + 1;
     $cnt = 0;
     $members = $this->target->getRequests($offset, $limit);
     if ($members) {
         // @fixme change!
         $member_list = new SubQueueList($members, $this);
         $cnt = $member_list->show();
     }
     $members->free();
     $this->pagination($this->page > 1, $cnt > PROFILES_PER_PAGE, $this->page, 'subqueue', array('nickname' => $this->target->getNickname()));
     // urgh
 }
Beispiel #2
0
 function showContent()
 {
     $offset = ($this->page - 1) * PROFILES_PER_PAGE;
     $limit = PROFILES_PER_PAGE + 1;
     $cnt = 0;
     try {
         $subqueue = $this->target->getRequests($offset, $limit);
     } catch (NoResultException $e) {
         // TRANS: If no pending subscription requests are found
         $this->element('div', null, _m('You have no pending subscription requests.'));
         return;
     }
     $list = new SubQueueList($subqueue, $this);
     $cnt = $list->show();
     $subqueue->free();
     $this->pagination($this->page > 1, $cnt > PROFILES_PER_PAGE, $this->page, 'subqueue', array('nickname' => $this->target->getNickname()));
     // urgh
 }