uid = $uid; $this->question = $question; $this->values = $values; } /** * function evaluate() * Evaluates the references and fills in the objects for them instead. */ public function evaluate() { if(is_string($this->question)) { $dbi = new DatabaseInterface(); $result = $dbi->get("question", array("code" => $this->question)); if(!isset($result[0])) return false; $this->question = $result[0]; } return true; } } ?>