Last change
on this file since 149 was
149,
checked in by jkraaijeveld, 13 years ago
|
Added missing classes for the database connection
|
File size:
704 bytes
|
Line | |
---|
1 | <?php
|
---|
2 | /**
|
---|
3 | * Description of Session
|
---|
4 | *
|
---|
5 | * @author jkraaijeveld
|
---|
6 | */
|
---|
7 |
|
---|
8 | class 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.