Esempio n. 1
0
 function report($id = "-1")
 {
     global $loginInst;
     if ($id != "-1") {
         $this->activate($id);
     } else {
         $this->userId = $loginInst->id;
         // we want to have the creation time on new reports too
         if (!isset($this->created) || $this->created == "") {
             $this->created = tool::getTime("U");
         }
     }
     $this->logger = new logger();
     $this->logger->setUser($loginInst);
     $this->logger->setToken("REPORT");
 }