Changeset 205
- Timestamp:
- 01/06/12 09:46:57 (13 years ago)
- Location:
- Dev/trunk
- Files:
-
- 3 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 -
Dev/trunk/rdfConstants.php
r195 r205 61 61 define('OF_SESSION', SURVEYTOOL_PREDICATES_NAMESPACE . 'of_session'); 62 62 define('HAS_RESULTSET', SURVEYTOOL_PREDICATES_NAMESPACE . 'has_resultset'); 63 63 define('CREATIONDATE', SURVEYTOOL_PREDICATES_NAMESPACE . 'creationdate'); 64 64 ?> -
Dev/trunk/selectSession.php
r191 r205 55 55 //Get available sessions for current user 56 56 //$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... 58 var_dump($sessions); 59 59 ?> 60 60
Note: See TracChangeset
for help on using the changeset viewer.