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

Last change on this file since 101 was 98, checked in by fpvanagthoven, 14 years ago

Question code.

File size: 623 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 $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.