Changeset 158 for Dev/trunk/classes/SurveyConnector.php
- Timestamp:
- 11/18/11 11:07:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/SurveyConnector.php
r149 r158 55 55 $keys = array_keys($arguments); 56 56 //Set default values for arguments 57 $uid = " ?uid"; $title = "?title"; $description = "?description"; $creator = "?creator"; $questions = "";57 $uid = ""; $title = ""; $description = ""; $creator = ""; $questions = ""; 58 58 if(in_array("uid", $keys)) 59 $uid = ' \''.$arguments["uid"].'\'';59 $uid = 'predicates:uid \''.$arguments["uid"].'\''; 60 60 if(in_array("title", $keys)) 61 $title = ' \''.$arguments["title"].'\'';61 $title = 'predicates:title \''.$arguments["title"].'\''; 62 62 if(in_array("description", $keys)) 63 $description = " \"".$arguments["description"]."\"";63 $description = "predicates:description \"".$arguments["description"]."\""; 64 64 if(in_array("creator", $keys)) 65 $creator = " \"".$arguments["creator"]."\"";65 $creator = "predicates:creator \"".$arguments["creator"]."\""; 66 66 if(in_array("questions", $keys)) 67 67 { … … 83 83 predicates:uid ?uid ; 84 84 predicates:title ?title ; 85 predicates:description ?description ; 86 predicates:uid ' . $uid . ' 87 predicates:title ' . $title . ' 88 predicates:description ' . $description . ' 89 predicates:creator ' . $creator . ' 90 ' . $questions . ' 85 predicates:description ?description ; 86 predicates:creator ?creator ; 87 ' . $uid . $title . $description . $creator . $questions . ' 91 88 }'; 92 89 … … 111 108 /** 112 109 * Gets the questions corresponding to the survey 113 * @param type $uid 110 * @param type $uid : The uid for which the questions should be gotten. 114 111 */ 115 112 private function getQuestions($uid) … … 143 140 /** 144 141 * Saves the given Survey object. 145 * @param type $rToolObject 142 * @param type $rToolObject : The ResearchToolObject to be saved. 146 143 */ 147 144 public function set($rToolObject)
Note: See TracChangeset
for help on using the changeset viewer.