public function log_error($message = null, $type = TestSessionLog::TEST_SESSION_LOG_TYPE_R) { if ($message == null) { $message = $this->error_output; } TestSession::create_session_log($type, $this->UserWorkspace_id, $this->id, $this->Test_id, $this->hash, $this->Template_id, $this->Template_UserWorkspace_id, $this->status, $message, $_SERVER['REMOTE_ADDR'], $_SERVER["HTTP_USER_AGENT"]); }