Open source survey management
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
699 B

  1. <?php
  2. abstract class ModuleType
  3. {
  4. const RADIO = 0;
  5. const CHECKBOX = 1;
  6. const NUM_INPUT = 2;
  7. const RANKING = 3;
  8. const DROPDOWN = 4;
  9. const TEXTBOX = 5; //TODO
  10. const TEXTAREA = 6;
  11. }
  12. class Module
  13. {
  14. public $title;
  15. public $subtext;
  16. public $name;
  17. public $options = array();
  18. public $rankings = array(); //Optional
  19. public $type;
  20. public $unit;
  21. public function __construct($t, $st, $n, $o, $r, $ty, $u)
  22. {
  23. global $title;
  24. global $subtext;
  25. global $name;
  26. global $options;
  27. global $rankings;
  28. global $type;
  29. global $unit;
  30. $this->title = $t;
  31. $this->subtext = $st;
  32. $this->name = $n;
  33. $this->options = $o;
  34. $this->rankings = $r;
  35. $this->type = $ty;
  36. $this->unit = $u;
  37. }
  38. }
  39. ?>