Open source survey management

moduleClass.php 699B

    <?php abstract class ModuleType { const RADIO = 0; const CHECKBOX = 1; const NUM_INPUT = 2; const RANKING = 3; const DROPDOWN = 4; const TEXTBOX = 5; //TODO const TEXTAREA = 6; } class Module { public $title; public $subtext; public $name; public $options = array(); public $rankings = array(); //Optional public $type; public $unit; public function __construct($t, $st, $n, $o, $r, $ty, $u) { global $title; global $subtext; global $name; global $options; global $rankings; global $type; global $unit; $this->title = $t; $this->subtext = $st; $this->name = $n; $this->options = $o; $this->rankings = $r; $this->type = $ty; $this->unit = $u; } } ?>