Last change
on this file since 168 was
159,
checked in by jkraaijeveld, 13 years ago
|
Added a creator to Session. Remember to remove your current database file for Sessions.
|
File size:
796 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 $creator;
|
---|
12 | public $datetime;
|
---|
13 | public $pipeline;
|
---|
14 | public $answersets;
|
---|
15 |
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Constructor for a Session object
|
---|
19 | * @param type $uid
|
---|
20 | * @param type $title
|
---|
21 | * @param type $creator
|
---|
22 | * @param type $datetime
|
---|
23 | * @param type $pipeline
|
---|
24 | */
|
---|
25 | public function __construct($uid = null, $title = null, $creator = null, $datetime = null, $pipeline = null, $answersets = null)
|
---|
26 | {
|
---|
27 | if(!isset($uid))
|
---|
28 | {
|
---|
29 | $uid = md5(uniqid(rand(), true));
|
---|
30 | }
|
---|
31 | $this->uid = $uid;
|
---|
32 | $this->title = $title;
|
---|
33 | $this->creator = $creator;
|
---|
34 | $this->datetime = $datetime;
|
---|
35 | $this->pipeline = $pipeline;
|
---|
36 | $this->answersets = $answersets;
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|
40 |
|
---|
41 | ?>
|
---|
Note: See
TracBrowser
for help on using the repository browser.