Ignore:
Timestamp:
10/24/11 16:33:44 (14 years ago)
Author:
jkraaijeveld
Message:

Now has Survey support

File:
1 copied

Legend:

Unmodified
Added
Removed
  • Dev/branches/jos-branch/testpage.php

    r132 r138  
    33
    44    $db = new DatabaseInterface();
    5     $result = $db->get("user", array("name" => "jkraaijeveld"));
     5    $result = $db->get("survey", array("questions" => array("q4")));
    66    print_r($result);
    7    
    8     // Create new application and save it in database
    9     $newApp = new Application(null, "Titel", "Beschrijving", "Stijl");
    10     $db->set(newApp);
    11    
    12     //Retrieve all Questions
    13     $results = $db->get("question", array());
    14    
    15     //Batchsave all results
    16     $db->set($results);
    177?>
Note: See TracChangeset for help on using the changeset viewer.