Changeset 100 for Dev/trunk/classes/DashboardCreationDatabaseInterface.php
- Timestamp:
- 09/01/11 15:59:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/DashboardCreationDatabaseInterface.php
r91 r100 9 9 class DashboardCreationDatabaseInterface 10 10 { 11 public function __construct() 11 protected $dashboardRDFWriter; 12 protected $dashboardRDFReader; 13 14 public function __construct($dashID) 12 15 { 16 if($dashID == null) 17 $dashboardID = md5( uniqid(rand(), true) ); 18 else 19 $dashboardID = $dashID; 13 20 21 $this->dashboardRDFWriter = new DashboardRDFWriter($dashboardID); 22 $this->dashboardRDFReader = new DashboardRDFReader($dashboardID); 23 } 24 25 public function setDashboardInfo($dashboard,$user) 26 { 27 $dTitle = $dashboard['dashboardTitle']; 28 $dDescription = $dashboard['dashboardDescription']; 29 30 $dCreatorID = $user['username']; 31 32 $this->dashboardRDFWriter->createDashboard($dTitle, $dDescription, $dCreatorID); 33 34 $gNumber = 1; 35 while (isset($dashboard['graphTitle'.$gNumber])) 36 { 37 if (isset($dashboard['graphID'.$gNumber])) 38 $gID = $dashboard['graphID'.$gNumber]; 39 else 40 $gID = md5( uniqid(rand(), true) ); 41 $gTitle = $dashboard['graphTitle'.$gNumber]; 42 $gDescription = $dashboard['graphDescription'.$gNumber]; 43 44 $gTypes = array(); 45 $tNumber = 1; 46 while(isset($dashboard['g'.$gNumber.'type'.$tNumber])) 47 { 48 49 } 50 51 } 14 52 } 15 53 }
Note: See TracChangeset
for help on using the changeset viewer.