Beispiel #1
0
 function display($tpl = null)
 {
     TOOLBAR_enmasse::_SMENU();
     $nNumberOfSpammers = JModel::getInstance('commentSpammer', 'EnmasseModel')->countAll();
     if ($nNumberOfSpammers == 0) {
         TOOLBAR_enmasse::_COMMENT_SPAMMER_EMPTY();
     } else {
         TOOLBAR_enmasse::_COMMENT_SPAMMER();
     }
     /// load pagination
     $pagination = $this->get('Pagination');
     $state = $this->get('state');
     // get order values
     $order['order_dir'] = $state->get('filter_order_dir');
     $order['order'] = $state->get('filter_order');
     $spammerList = JModel::getInstance('CommentSpammer', 'EnmasseModel')->search();
     $this->assignRef('spammerList', $spammerList);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('order', $order);
     parent::display($tpl);
 }