Last change
on this file since 98 was
91,
checked in by basvannuland, 14 years ago
|
start with dashboard database
|
File size:
736 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | class DashboardRDFReader |
---|
4 | { |
---|
5 | protected $model; |
---|
6 | |
---|
7 | protected $dashboardID; |
---|
8 | protected $filePath; |
---|
9 | |
---|
10 | public function __construct($dashboardID) |
---|
11 | { |
---|
12 | // Create empty MemModel |
---|
13 | $factory = new ModelFactory(); |
---|
14 | $this->model = $factory->getDefaultModel(); |
---|
15 | |
---|
16 | $this->dashboardID = $dashboardID; |
---|
17 | $this->filePath = 'data/dashboards/dashboard_'.$this->dashboardID.'.rdf'; |
---|
18 | } |
---|
19 | |
---|
20 | public function loadDashboard() |
---|
21 | { |
---|
22 | if(file_exists($this->filePath)) |
---|
23 | { |
---|
24 | $this->model->load($this->filePath); |
---|
25 | return true; |
---|
26 | } |
---|
27 | else |
---|
28 | { |
---|
29 | return false; |
---|
30 | } |
---|
31 | } |
---|
32 | |
---|
33 | public function getDashboardInfo() |
---|
34 | { |
---|
35 | |
---|
36 | } |
---|
37 | } |
---|
38 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.