Esempio n. 1
0
 public function getNotices()
 {
     $this->db->setQuery('SELECT COUNT(*)' . ' FROM #__acctexp_eventlog' . ' WHERE `notify` = \'1\'');
     $furthernotices = $this->db->loadResult() - 5;
     $this->db->setQuery('SELECT *' . ' FROM #__acctexp_eventlog' . ' WHERE `notify` = \'1\'' . ' ORDER BY `datetime` DESC' . ' LIMIT 0, 5');
     $notices = $this->db->loadObjectList();
     HTML_AcctExp::eventlogModal($notices, $furthernotices);
 }