SurveyInvitation.class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once 'Resource.class.php';
  4. /**
  5. * An SurveyInvitation
  6. * @author Yannick Warnier <yannick.warnier@beeznest.com>
  7. * @package chamilo.backup
  8. */
  9. class SurveyInvitation extends Resource
  10. {
  11. /**
  12. * Survey code
  13. */
  14. var $code;
  15. /**
  16. * User info
  17. */
  18. var $user;
  19. /**
  20. * Invitation code
  21. */
  22. var $invitation_code;
  23. /**
  24. * Invitation date
  25. */
  26. var $invitation_date;
  27. /**
  28. * Reminder date
  29. */
  30. var $reminder_date;
  31. /**
  32. * Create a new SurveyInvitation
  33. * @param int $id
  34. * @param string $code
  35. * @param string $user
  36. * @param string $invitation_code
  37. * @param string $invitation_date
  38. * @param string $reminder_date
  39. */
  40. public function __construct($id,$code,$user,$invitation_code,$invitation_date,$reminder_date)
  41. {
  42. parent::__construct($id, RESOURCE_SURVEYINVITATION);
  43. $this->code = $code;
  44. $this->user = $user;
  45. $this->invitation_code = $invitation_code;
  46. $this->invitation_date = $invitation_date;
  47. $this->reminder_date = $reminder_date;
  48. }
  49. /**
  50. * Show this invitation
  51. */
  52. function show()
  53. {
  54. parent::show();
  55. echo $this->invitation_code;
  56. }
  57. }