- Timestamp:
- 02/24/12 16:17:56 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui
- Property svn:mergeinfo changed
/Dev/branches/jos-branch merged: 285-287
- Property svn:mergeinfo changed
-
Dev/branches/rest-dojo-ui/server/classes/models/ResearchToolObject.php
r274 r289 30 30 $model->load($filename); 31 31 return $model; 32 } 33 34 /** 35 * function stripUri($inString) 36 * @param type $inString 37 * Takes a URI and creates a new array which contains the type and the uid of the object 38 */ 39 public static function stripUri($inString) 40 { 41 $exp = explode('/', $inString); 42 if(sizeof($exp) < 7) 43 return null; 44 else 45 return array("type" => $exp[5], "uid" => $exp[6]); 32 46 } 33 47 … … 67 81 case "answersets" : foreach($arguments[$key] as $answerset) { $addition = $addition . "predicates:has_answerset '" . $answerset . "'\n"; } break; 68 82 case "questions" : foreach($arguments[$key] as $question) { $addition = $addition . "predicates:has_question '" . $question . "'\n"; } break; 69 case "location" : $addition = "predicates:location '" . $arguments[$key] . " \n"; break;70 case "facilitator" : $addition = "predicates:facilitator '" . $arguments[$key] . " \n"; break;71 case "starttime" : $addition = "predicates:starttime '" . $arguments[$key] . " \n"; break;72 case "endtime" : $addition = "predicates:endtime '" . $arguments[$key] . " \n"; break;73 case "session" : $addition = "predicates:of_session '" . $arguments[$key] . " \n"; break;74 case "resultset" : $addition = "predicates:has_resultset '" . $arguments[$key] . " \n"; break;75 case "of_application" : $addition = "predicates:of_application '" . $arguments[$key] . "\n"; break;83 case "location" : $addition = "predicates:location '" . $arguments[$key] . "'\n"; break; 84 case "facilitator" : $addition = "predicates:facilitator '" . $arguments[$key] . "'\n"; break; 85 case "starttime" : $addition = "predicates:starttime '" . $arguments[$key] . "'\n"; break; 86 case "endtime" : $addition = "predicates:endtime '" . $arguments[$key] . "'\n"; break; 87 case "session" : $addition = "predicates:of_session '" . $arguments[$key] . "'\n"; break; 88 case "resultset" : $addition = "predicates:has_resultset '" . $arguments[$key] . "'\n"; break; 89 case "of_application" : $addition = "predicates:of_application <" . APPLICATION . '/' . $arguments[$key] . ">\n"; break; 76 90 case "open" : $addition = "predicates:open '" . $arguments[$key] . "\n"; break; 77 91 }
Note: See TracChangeset
for help on using the changeset viewer.