qtype = MULTIANSWER; $thequestion->course = $this->course; if (!empty($thequestion)) { $thequestion->name = $lines[0]; $questions[] = $thequestion; } return $questions; } }