- Timestamp:
- 10/24/11 16:33:44 (14 years ago)
- Location:
- Dev/branches/jos-branch
- Files:
-
- 7 added
- 1 deleted
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/jos-branch/classes/DatabaseInterface.php
r130 r138 20 20 private $questionConnector; 21 21 private $userConnector; 22 private $surveyConnector; 22 23 23 24 /** … … 29 30 $this->questionConnector = new QuestionConnector(); 30 31 $this->userConnector = new UserConnector(); 32 $this->surveyConnector = new SurveyConnector(); 31 33 } 32 34 … … 50 52 return $this->userConnector->get($arguments); 51 53 break; 54 case "survey": 55 return $this->surveyConnector->get($arguments); 52 56 } 53 57 } … … 70 74 $this->userConnector->set($rToolObject); 71 75 break; 76 case "Survey": 77 $this->surveyConnector->set($rToolObject); 72 78 } 73 79 } -
Dev/branches/jos-branch/testpage.php
r132 r138 3 3 4 4 $db = new DatabaseInterface(); 5 $result = $db->get(" user", array("name" => "jkraaijeveld"));5 $result = $db->get("survey", array("questions" => array("q4"))); 6 6 print_r($result); 7 8 // Create new application and save it in database9 $newApp = new Application(null, "Titel", "Beschrijving", "Stijl");10 $db->set(newApp);11 12 //Retrieve all Questions13 $results = $db->get("question", array());14 15 //Batchsave all results16 $db->set($results);17 7 ?>
Note: See TracChangeset
for help on using the changeset viewer.