source: Dev/branches/jos-branch/classes/widgets/DbDataSelectionWidget.php @ 230

Last change on this file since 230 was 230, checked in by jkraaijeveld, 13 years ago

Made most functionality from the demo branch work with new database.

File size: 709 bytes
Line 
1<?php
2
3/*
4 * To change this template, choose Tools | Templates
5 * and open the template in the editor.
6 */
7
8/**
9 * Description of dbDataSelectionWidget
10 *
11 * @author CPS
12 */
13class DbDataSelectionWidget {
14
15    //Properties
16   
17    public $sessions;
18    public $gamedata;
19
20    public function __construct() {
21        $dbi = new DatabaseInterface();
22       
23        $this->sessions = $dbi->get("Session", array());
24        $this->gamedata = $dbi->get("Application", array());
25    }
26
27    public function Javascript() {
28        ?>
29        <script type='text/javascript' src="js/generalScripts.js"></script>
30        <script type='text/javascript' src="js/dashboardScripts.js"></script>
31        <?php
32
33    }
34
35}
36?>
Note: See TracBrowser for help on using the repository browser.