- Timestamp:
- 02/19/12 11:31:11 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui
-
Property
svn:mergeinfo
set to
/Dev/branches/jos-branch merged eligible
-
Property
svn:mergeinfo
set to
-
Dev/branches/rest-dojo-ui/server
-
Property
svn:ignore
set to
.testpage.php.swp
.rdfConstants.php.swp
-
Property
svn:ignore
set to
-
Dev/branches/rest-dojo-ui/server/classes/models
-
Property
svn:ignore
set to
.SurveyInstance.php.swp
.ApplicationInstance.php.swp
.AnswerSet.php.swp
.Answer.php.swp
.Question.php.swp
-
Property
svn:ignore
set to
-
Dev/branches/rest-dojo-ui/server/classes/models/Answer.php
r263 r271 11 11 */ 12 12 class Answer extends ResearchToolObject { 13 14 /** 15 * static function create() 16 * @param type $obj : The object which should be converted to an Answer 17 */ 18 public static function create($obj) 19 { 20 return new Answer($obj->uid, $obj->question, $obj->values) 21 } 22 13 23 public static $filename = 'data/results/answers.rdf'; 14 24 … … 40 50 if(is_string($this->question)) 41 51 { 42 $result = Question::get(array(" code" => $this->question));52 $result = Question::get(array("uid" => $this->question)); 43 53 if(!isset($result[0])) 44 54 return false; … … 73 83 //Query the model 74 84 $results = $model->sparqlQuery($querystring); 75 85 //An answer can have multiple values, get all these values for the answer instances found. 76 86 $answers = array(); 77 87 if(!empty($results))
Note: See TracChangeset
for help on using the changeset viewer.