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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.