Ignore:
Timestamp:
09/19/11 16:52:43 (14 years ago)
Author:
basvannuland
Message:

question creation getinfo fixed

File:
1 edited

Legend:

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

    r109 r113  
    1616        if (!is_dir($this->filePath))
    1717            mkdir($this->filePath);     
    18        
    19     }
    20    
    21     public function loadQuestions()
    22     {
    23         if(file_exists($this->filePath.'questions.rdf'))
    24         {
    25             $this->model->load($this->filePath.'questions.rdf');
    26             return true;
    27         }
    28         else
    29         {
    30             return false;
    31         }
     18        $this->reloadQuestions();
    3219    }
    3320   
     
    5037        $result['description'] = $this->readQuestionDescription($questionCode);
    5138        $result['type'] = $this->readQuestionType($questionCode);
    52         $result['code'] = $this->readQuestionCode($questionCode);
    5339        $result['category'] = $this->readQuestionCategory($questionCode);
    5440        $result['answers'] = $this->readQuestionAnswers($questionCode);
     
    9278            {
    9379                    _question   predicates:resource_type        resources:question ;
    94                                 predicates:question_code    "' . $questionCode . '"  ;
     80                                predicates:question_code        "' . $questionCode . '"  ;
    9581                                predicates:title                ?questionTitle         
    9682            }';
Note: See TracChangeset for help on using the changeset viewer.