source: Dev/trunk/classes/DashboardTool.php @ 96

Last change on this file since 96 was 96, checked in by fpvanagthoven, 14 years ago

End of day commit

File size: 1.1 KB
Line 
1<?php
2
3/**
4 * Description of DashboardTool
5 *
6 * @author Frans
7 */
8class DashboardTool
9{
10        private $surveys;
11        private $gamedata;
12
13        public function __construct($surveys, $gamedata = null)
14        {
15                $this->surveys = $surveys;
16                $this->gamedata = $gamedata;
17
18                $this->init();
19        }
20
21        private function init()
22        {
23                foreach ($this->surveys as $survey)
24                {
25                        $surveyResults = $survey->results;
26                        $questionResults = $surveyResults->getQuestionResults();
27                        ?>
28                        <div class="resultsDiv borderRadius padding1em">
29                                <?php
30                                foreach ($questionResults as $questionResult)
31                                {
32                                        $this->visualizeResult($questionResult);
33                                }
34                                ?>
35                        </div>
36                        <?php
37                }
38        }
39
40        private function visualizeResult($questionResult)
41        {
42                ?><div class="resultDiv"><?php
43                $this->displayQuestion($questionResult);
44                $this->displayVisualization($questionResult);
45                $this->displayChangeVisualizationBar();
46                ?></div><?php
47        }
48       
49        private function displayQuestion($questionResult)
50        {
51                echo "allo?";
52        }
53       
54        private function displayVisualization($questionResult)
55        {
56               
57        }
58       
59        private function displayChangeVisualizationBar()
60        {
61               
62        }
63}
64?>
Note: See TracBrowser for help on using the repository browser.