Changeset 205 for Dev/trunk/classes
- Timestamp:
- 01/06/12 09:46:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/SessionConnector.php
r195 r205 59 59 $pipeline = $this->getPipeline($result['?uid']->label); 60 60 $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); 64 64 } 65 65 } … … 134 134 $this->model->add(new Statement($resourceSession, $predicateCreator, $sessionCreator)); 135 135 136 $sessionTimestamp = new Literal($rToolObject-> datetime->getTimestamp());136 $sessionTimestamp = new Literal($rToolObject->creationdate->getTimestamp()); 137 137 // $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); 139 139 $this->model->add(new Statement($resourceSession, $predicateTimestamp, $sessionTimestamp)); 140 140
Note: See TracChangeset
for help on using the changeset viewer.