Example #1
0
 function getNewEvents()
 {
     $lid = $this->logs->getLastDashId();
     $where = "AND logs.timestamp LIKE '%' AND lc.uid = " . $this->registry["ui"]["id"];
     $db = new Model_Db_Dashboard();
     $data = $db->getNewEvents($lid, $where);
     for ($i = 0; $i < count($data); $i++) {
         $data[$i]["param"] = $this->logs->getHistoryFromId($data[$i]["id"]);
     }
     return $data;
 }
Example #2
0
 function getNewEvents()
 {
     $lid = $this->registry["logs"]->getLastDashId();
     $date = $this->getSessionDate();
     $data = Model_Db_Dashboard::getNewEvents($lid, $date);
     return $this->rightLogs($data);
 }