Changeset 110 for Dev/trunk/classes/QuestionCreationDatabaseInterface.php
- Timestamp:
- 09/19/11 15:23:09 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/QuestionCreationDatabaseInterface.php
r109 r110 30 30 $qDescription = $question['questionDescription']; 31 31 $qType = $question['questionType']; 32 $qCategory = $question['questionCategory']; 32 33 33 34 $qAnswers = array(); … … 45 46 } 46 47 else { 47 $this->questionRDFWriter->createQuestion($qTitle,$qDescription,$qType,$qCode, "null",$qAnswers);48 $this->questionRDFWriter->createQuestion($qTitle,$qDescription,$qType,$qCode,$qCategory,$qAnswers); 48 49 $this->questionRDFWriter->saveQuestions(); 49 50 return 'Question saved'; … … 63 64 $questionTypeObject = $this->questionRDFReader->readQuestionType($qCode); 64 65 $questionInfo['questionType'] = $questionTypeObject[0]['?questionType']->label; 66 67 $questionCategoryObject = $this->questionRDFReader->readQuestionCategory($qCode); 68 $questionInfo['questionCategory'] = $questionTypeObject[0]['?questionCategory']->label; 65 69 66 70 $resultAnswers = $this->questionRDFReader->readQuestionAnswers($qCode);
Note: See TracChangeset
for help on using the changeset viewer.