Changeset 107 for Dev/trunk/classes


Ignore:
Timestamp:
09/19/11 13:30:35 (14 years ago)
Author:
fpvanagthoven
Message:

QuestionCreationDatabaseInterface? setQuestionInfo working. getExistingQuestions not working yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/classes/QuestionCreationDatabaseInterface.php

    r106 r107  
    2626    public function setQuestionInfo($question)
    2727    {
    28         $qCode = $question['questionCode'.$qNumber];
    29         $qTitle = $question['questionTitle'.$qNumber];
    30         $qDescription = $question['questionDescription'.$qNumber];
    31         $qType = $question['questionType'.$qNumber];
     28        $qCode = $question['questionCode'];
     29        $qTitle = $question['questionTitle'];
     30        $qDescription = $question['questionDescription'];
     31        $qType = $question['questionType'];
    3232
    3333        $qAnswers = array();
     
    4646        else {
    4747            $this->questionRDFWriter->createQuestion($qTitle,$qDescription,$qType,$qCode,"null",$qAnswers);
     48            $this->questionRDFWriter->saveQuestions();
    4849            return 'Question saved';
    49         }
    50         $this->questionRDFWriter->saveQuestions();         
     50        }         
    5151    }
    5252   
Note: See TracChangeset for help on using the changeset viewer.