source: Dev/branches/jos-branch/classes/Question.php @ 130

Last change on this file since 130 was 130, checked in by jkraaijeveld, 14 years ago

Added support for questions and users

File size: 947 bytes
RevLine 
[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 */
[130]13class Question extends ResearchToolObject{   
[29]14    public $title;
15    public $type;
16    public $description;
[112]17    public $category;
[130]18    public $answers; // format answers['#']
[29]19   
[130]20    /**
21     * Constructor for a Question. $uid equals the corresponding code.
22     * @param type $uid
23     * @param type $title
24     * @param type $type
25     * @param type $description
26     * @param type $category
27     * @param type $answers
28     */
29    public function __construct($uid, $title = null, $type = null, $description = null, $category = null, $answers = null)
[29]30    {
[130]31        $this->uid = $uid;
[29]32        $this->title = $title;
33        $this->type = $type;
34        $this->description = $description;
[130]35        $this->category =  $category;
36        $this->answers = $answers;
[29]37    }
38}
39
40?>
Note: See TracBrowser for help on using the repository browser.