Ignore:
Timestamp:
09/19/11 13:06:37 (14 years ago)
Author:
basvannuland
Message:

New question interfaces

Location:
Dev/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk

    • Property svn:ignore
      •  

        old new  
         1data
        12nbproject
  • Dev/trunk/classes/QuestionRDFWriter.php

    r85 r105  
    2424    }
    2525   
    26     public function createQuestion($qTitle,$qDescription,$qType,$qID,$qCode,$qCategory,$qAnswers)
     26    public function createQuestion($qTitle,$qDescription,$qType,$qCode,$qCategory,$qAnswers)
    2727    {
    28         $resourceQuestion = new Resource(QUESTION.'/'.$qID);
     28        $resourceQuestion = new Resource(QUESTION.'/'.$qCode);
    2929
    3030        $resourceQuestionType = new Resource(QUESTION);
     
    4343        $resourceQuestionType = new Literal($qType);
    4444        $this->model->add(new Statement($resourceQuestion,$predicateQType,$resourceQuestionType));
    45 
    46         $predicateUniqueID = new Resource(UID);
    47         $questionUID = new Literal($qID);
    48         $this->model->add(new Statement($resourceQuestion,$predicateUniqueID,$questionUID));
    4945       
    5046        $predicateQCode = new Resource(QCODE);
Note: See TracChangeset for help on using the changeset viewer.