public function doAction() { try { log::doLog("CASMACAT: loadLogChunkController->doAction(): Loading logListChunk..."); $logListChunk = fetchLogChunk($this->jobId, $this->fileId, $this->startOffset, $this->endOffset); if ($logListChunk < 0) { $this->result["code"] = -1; $this->result["errors"][] = array("code" => -1, "message" => "Error loading logListChunk"); } else { if (!$logListChunk) { $this->result["code"] = 1; $this->result["data"] = "No more data"; } else { $this->result["code"] = 0; // $this->result["data"]["logListChunk"] = json_encode($logListChunk); $this->result["data"]["logListChunk"] = $logListChunk; } } log::doLog("CASMACAT: loadLogChunkController->doAction(): Loading of logListChunk finished, " . count($logListChunk) . " events loaded."); } catch (Exception $e) { $this->result["code"] = -1; $this->result["errors"][] = array("code" => -1, "message" => "Unexcpected error: '" . $e->GetMessage() . "'"); log::doLog("CASMACAT: loadLogChunkController->doAction(): Unexcpected error: '" . $e->GetMessage() . "'"); } }
public function doAction() { $segment = getSegmentsInfo($this->jobId, $this->password, 0, 1); $this->fileId = $segment[0]["id_file"]; // log::doLog("CASMACAT: replayController->doAction(): Loading meta data..."); $logListChunk = fetchLogChunk($this->jobId, $this->fileId, 0, 3); $this->vsWidth = $logListChunk[2]->width + 17; $this->vsHeight = $logListChunk[2]->height; $this->startTime = $logListChunk[0]->time; $this->endTime = fetchEndTime($this->jobId, $this->fileId); // $this->vsSrc = $this->vsSrc . INIT::$BASE_URL . "index.php?action=cat&jid=$this->jobId&password=$this->password&page=&ia@6007&replay=true"; }