Last change
on this file since 159 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
|
Rev | Line | |
---|
[149] | 1 | <?php
|
---|
| 2 | /**
|
---|
| 3 | * Description of Session
|
---|
| 4 | *
|
---|
| 5 | * @author jkraaijeveld
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | class Session extends ResearchToolObject
|
---|
| 9 | {
|
---|
| 10 | public $title;
|
---|
[159] | 11 | public $creator;
|
---|
[149] | 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
|
---|
[159] | 21 | * @param type $creator
|
---|
[149] | 22 | * @param type $datetime
|
---|
| 23 | * @param type $pipeline
|
---|
| 24 | */
|
---|
[159] | 25 | public function __construct($uid = null, $title = null, $creator = null, $datetime = null, $pipeline = null, $answersets = null)
|
---|
[149] | 26 | {
|
---|
| 27 | if(!isset($uid))
|
---|
| 28 | {
|
---|
| 29 | $uid = md5(uniqid(rand(), true));
|
---|
| 30 | }
|
---|
| 31 | $this->uid = $uid;
|
---|
| 32 | $this->title = $title;
|
---|
[159] | 33 | $this->creator = $creator;
|
---|
[149] | 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.