Example #1
0
 private function postquery()
 {
     $this->setError();
     if (!empty(DATABASE::$lastquery)) {
         foreach (DATABASE::$lastquery as $id => $LASTQUERY) {
             $this->__lastquery__ = $LASTQUERY;
             $start = isset(DATABASE::$lastquerytime[$id]["start"]) ? DATABASE::$lastquerytime[$id]["start"] : "0";
             $end = isset(DATABASE::$lastquerytime[$id]["end"]) ? DATABASE::$lastquerytime[$id]["end"] : "0";
             $querylogcallback = DATABASE::$databases[$this->__use_db]['querylogcallback'];
             if ($querylogcallback != null) {
                 call_user_func_array($querylogcallback, [$this->__lastquery__, $start, $end]);
             }
         }
     }
     DATABASE::$lastquery = [];
     DATABASE::$lastquerytime = [];
 }