Ignore:
Timestamp:
09/01/11 15:59:15 (14 years ago)
Author:
basvannuland
Message:

application bug multiple values fixed
more dashboard rdf work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/classes/DashboardCreationDatabaseInterface.php

    r91 r100  
    99class DashboardCreationDatabaseInterface
    1010{   
    11     public function __construct()
     11    protected $dashboardRDFWriter;
     12    protected $dashboardRDFReader;
     13   
     14    public function __construct($dashID)
    1215    {
     16        if($dashID == null)
     17            $dashboardID = md5( uniqid(rand(), true) );
     18        else
     19            $dashboardID = $dashID;
    1320       
     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        }
    1452    }
    1553}
Note: See TracChangeset for help on using the changeset viewer.