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; |
---|
[98] | 15 | public $code; |
---|
[29] | 16 | public $title; |
---|
| 17 | public $type; |
---|
| 18 | public $description; |
---|
[32] | 19 | public $answers; // format answers['#'] |
---|
[29] | 20 | |
---|
[98] | 21 | public function __construct($id, $code, $title, $type, $description = null) |
---|
[29] | 22 | { |
---|
[35] | 23 | $this->id = $id; |
---|
[98] | 24 | $this->code = $code; |
---|
[29] | 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.