data; } public function setData($val) { $this->data = $val; } public function getTime() { return $this->time; } public function setTime($val) { $this->time = $val; } public function getResult() { return " punkti"; } public function save() { global $kdb; $aid = $this->getAnswerID(); parent::save(); if ( $aid == null ) { $sql = "INSERT INTO ".$this->table." (answerID, data, time) values(".$this->getAnswerID().", '".serialize($this->getData())."', '".$this->getTime()."')"; //print $sql; $kdb->query($sql); } else { // update answer - not in this version of Krihvel } } } ?>