Ignore:
Timestamp:
02/24/12 16:17:56 (13 years ago)
Author:
hendrikvanantwerpen
Message:

[merge] svn merge ../jos-branch -r 284:287 .

Location:
Dev/branches/rest-dojo-ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui

  • Dev/branches/rest-dojo-ui/server/classes/models/ResearchToolObject.php

    r274 r289  
    3030                        $model->load($filename);
    3131                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]);
    3246        }
    3347
     
    6781                                case "answersets" : foreach($arguments[$key] as $answerset) { $addition = $addition . "predicates:has_answerset '" . $answerset . "'\n"; } break;
    6882                                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;
    7690                                case "open" : $addition = "predicates:open '" . $arguments[$key] . "\n"; break;
    7791                        }
Note: See TracChangeset for help on using the changeset viewer.