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

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

Application should now just be RDF-saved. Beginning on DashboardTool?.php.

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