Line | |
---|
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 { |
---|
14 | public $id; |
---|
15 | public $code; |
---|
16 | public $title; |
---|
17 | public $type; |
---|
18 | public $description; |
---|
19 | public $answers; // format answers['#'] |
---|
20 | |
---|
21 | public function __construct($id, $code, $title, $type, $description = null) |
---|
22 | { |
---|
23 | $this->id = $id; |
---|
24 | $this->code = $code; |
---|
25 | $this->title = $title; |
---|
26 | $this->type = $type; |
---|
27 | $this->description = $description; |
---|
28 | $this->answers = array(); |
---|
29 | } |
---|
30 | |
---|
31 | } |
---|
32 | |
---|
33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.