function KeepAlive() { if (dataSetExists($this->SessionFile)) { touchDataSet($this->SessionFile); } else { $this->Save(); } }
function Accept() { if (dataSetExists($this->TargetFile)) { @touchDataSet($this->TargetFile); renameDataSet($this->TargetFile, str_replace("." . $this->Extension, "." . EX_CHAT_REQUEST_ACCEPTED, $this->TargetFile)); } $this->SetStatus(REQUEST_STATUS_ACCEPTED); }