Changeset 205 for Dev/trunk


Ignore:
Timestamp:
01/06/12 09:46:57 (13 years ago)
Author:
jkraaijeveld
Message:

Fixed the creationdate issues that still remained. Sorry about that!

Location:
Dev/trunk
Files:
3 edited

Legend:

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

    r195 r205  
    5959                                $pipeline = $this->getPipeline($result['?uid']->label);
    6060                                $creator = $result['?creator']->label;
    61                                 $datetime = new DateTime();
    62                                 $datetime->setTimestamp(intval($result['?creationdate']->label));
    63                                 $sessions[] = new Session($result['?uid']->label, $result['?title']->label, $creator, $datetime, $pipeline);
     61                                $creationdate = new DateTime();
     62                                $creationdate->setTimestamp(intval($result['?creationdate']->label));
     63                                $sessions[] = new Session($result['?uid']->label, $result['?title']->label, $creator, $creationdate, $pipeline);
    6464                        }
    6565                }
     
    134134                $this->model->add(new Statement($resourceSession, $predicateCreator, $sessionCreator));
    135135
    136                 $sessionTimestamp = new Literal($rToolObject->datetime->getTimestamp());
     136                $sessionTimestamp = new Literal($rToolObject->creationdate->getTimestamp());
    137137        //      $sessionTimestamp = new Literal($rToolObject->datetime);    // Edit of above function, allows for creation of session, but still results in errors...
    138         $predicateTimestamp = new Resource(DATETIME);
     138        $predicateTimestamp = new Resource(CREATIONDATE);
    139139                $this->model->add(new Statement($resourceSession, $predicateTimestamp, $sessionTimestamp));
    140140
  • Dev/trunk/rdfConstants.php

    r195 r205  
    6161define('OF_SESSION', SURVEYTOOL_PREDICATES_NAMESPACE . 'of_session');
    6262define('HAS_RESULTSET', SURVEYTOOL_PREDICATES_NAMESPACE . 'has_resultset');
    63 
     63define('CREATIONDATE', SURVEYTOOL_PREDICATES_NAMESPACE . 'creationdate');
    6464?>
  • Dev/trunk/selectSession.php

    r191 r205  
    5555//Get available sessions for current user
    5656//$sessions = $dbi->get("Session", array("creator"=>$_SESSION['username']));  //This does not work, session.php does not yet have a property 'creator'
    57 $sessions = $dbi->get("Session", array());  // Let's just load everything then...
    58 //var_dump($sessions);
     57$sessions = $dbi->get("Session");  // Let's just load everything then...
     58var_dump($sessions);
    5959?>
    6060
Note: See TracChangeset for help on using the changeset viewer.