Last change
on this file since 75 was
35,
checked in by fpvanagthoven, 14 years ago
|
QuestionID now gets passed.
|
File size:
569 bytes
|
Rev | Line | |
---|
[29] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * To change this template, choose Tools | Templates |
---|
| 5 | * and open the template in the editor. |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | /** |
---|
| 9 | * Description of Question |
---|
| 10 | * |
---|
| 11 | * @author fpvanagthoven |
---|
| 12 | */ |
---|
| 13 | class Question { |
---|
[35] | 14 | public $id; |
---|
[29] | 15 | public $title; |
---|
| 16 | public $type; |
---|
| 17 | public $description; |
---|
[32] | 18 | public $answers; // format answers['#'] |
---|
[29] | 19 | |
---|
[35] | 20 | public function __construct($id, $title, $type, $description = null) |
---|
[29] | 21 | { |
---|
[35] | 22 | $this->id = $id; |
---|
[29] | 23 | $this->title = $title; |
---|
| 24 | $this->type = $type; |
---|
| 25 | $this->description = $description; |
---|
| 26 | $this->answers = array(); |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.