SurveyInvitation.class.php 1.2 KB

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