Changeset 110 for Dev/trunk/classes


Ignore:
Timestamp:
09/19/11 15:23:09 (14 years ago)
Author:
basvannuland
Message:

category added

File:
1 edited

Legend:

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

    r109 r110  
    3030        $qDescription = $question['questionDescription'];
    3131        $qType = $question['questionType'];
     32        $qCategory = $question['questionCategory'];
    3233
    3334        $qAnswers = array();
     
    4546        }
    4647        else {
    47             $this->questionRDFWriter->createQuestion($qTitle,$qDescription,$qType,$qCode,"null",$qAnswers);
     48            $this->questionRDFWriter->createQuestion($qTitle,$qDescription,$qType,$qCode,$qCategory,$qAnswers);
    4849            $this->questionRDFWriter->saveQuestions();
    4950            return 'Question saved';
     
    6364        $questionTypeObject = $this->questionRDFReader->readQuestionType($qCode);
    6465        $questionInfo['questionType'] = $questionTypeObject[0]['?questionType']->label;
     66       
     67        $questionCategoryObject = $this->questionRDFReader->readQuestionCategory($qCode);
     68        $questionInfo['questionCategory'] = $questionTypeObject[0]['?questionCategory']->label;
    6569
    6670        $resultAnswers = $this->questionRDFReader->readQuestionAnswers($qCode);
Note: See TracChangeset for help on using the changeset viewer.