source: Dev/trunk/classes/Question.php @ 89

Last change on this file since 89 was 35, checked in by fpvanagthoven, 14 years ago

QuestionID now gets passed.

File size: 569 bytes
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 */
13class Question {
14    public $id;
15    public $title;
16    public $type;
17    public $description;
18    public $answers; // format answers['#']
19   
20    public function __construct($id, $title, $type, $description = null)
21    {
22        $this->id = $id;
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.