SurveyInvitation.class.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 Coursecopy\Resource
  10. {
  11. /**
  12. * Survey code
  13. */
  14. public $code;
  15. /**
  16. * User info
  17. */
  18. public $user;
  19. /**
  20. * Invitation code
  21. */
  22. public $invitation_code;
  23. /**
  24. * Invitation date
  25. */
  26. public $invitation_date;
  27. /**
  28. * Reminder date
  29. */
  30. public $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. public function show()
  53. {
  54. parent::show();
  55. echo $this->invitation_code;
  56. }
  57. }