Changeset 238 for Dev/branches/jos-branch/createObject.php
- Timestamp:
- 01/18/12 16:39:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/jos-branch/createObject.php
r233 r238 43 43 $uid = $newQuestion->uid; 44 44 break; 45 case "session": 46 if (isset($_POST['newSessionName']) && !empty($_POST['newSessionName'])) { 47 $newSession = new Session(null, $_POST['newSessionName'], $creator, new DateTime(), null, null); 48 $newSession->save(); 49 $uid = $newSession->uid; 50 } else { 51 die("No session name specified!"); 52 } 53 54 55 break; 45 56 default: 46 57 //die ("Variable \$otc: $otc does not match a compatible object type!");
Note: See TracChangeset
for help on using the changeset viewer.