source: Dev/branches/jos-branch/classes/Session.php @ 143

Last change on this file since 143 was 143, checked in by jkraaijeveld, 14 years ago

Made lots of new connectors, stranded on Sessionconnector for now. Need to find a way to retain the order of applicaties and surveys of a pipeline.

File size: 704 bytes
Line 
1<?php
2/**
3 * Description of Session
4 *
5 * @author jkraaijeveld
6 */
7
8class Session extends ResearchToolObject
9{
10        public $title;
11        public $datetime;
12        public $pipeline;
13        public $answersets;
14
15       
16        /**
17         * Constructor for a Session object
18         * @param type $uid
19         * @param type $title
20         * @param type $datetime
21         * @param type $pipeline
22         */
23        public function __construct($uid = null, $title = null, $datetime = null, $pipeline = null, $answersets = null)
24        {
25                if(!isset($uid))
26                {
27                        $uid = md5(uniqid(rand(), true));
28                }
29                $this->uid = $uid;
30                $this->title = $title;
31                $this->datetime = $datetime;
32                $this->pipeline = $pipeline;
33                $this->answersets = $answersets;
34        }
35}       
36
37
38?>
Note: See TracBrowser for help on using the repository browser.