- Timestamp:
- 09/19/11 15:15:22 (14 years ago)
- Location:
- Dev/trunk/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/QuestionCreationDatabaseInterface.php
r107 r109 80 80 81 81 $resultQuestions = $this->questionRDFReader->readQuestionCodes(); 82 $this->questionRDFReader->reloadQuestions(); 82 83 if ($resultQuestions != null) 83 84 { 84 85 foreach ($resultQuestions as $questionCodeObject) 85 86 { 86 $questionCode = $questionCodeObject[ 0]['?questionCode']->label;87 $questionCode = $questionCodeObject['?questionCode']->label; 87 88 $questionTitle = $this->questionRDFReader->readQuestionTitle($questionCode); 88 89 $questions[$questionCode] = $questionTitle[0]['?questionTitle']->label; -
Dev/trunk/classes/QuestionRDFReader.php
r105 r109 16 16 if (!is_dir($this->filePath)) 17 17 mkdir($this->filePath); 18 18 19 } 19 20 … … 28 29 { 29 30 return false; 31 } 32 } 33 34 public function reloadQuestions() 35 { 36 // Create empty MemModel 37 $factory = new ModelFactory(); 38 $this->model = $factory->getDefaultModel(); 39 40 if(file_exists($this->filePath.'questions.rdf')) 41 { 42 $this->model->load($this->filePath.'questions.rdf'); 30 43 } 31 44 }
Note: See TracChangeset
for help on using the changeset viewer.