SurveyInvitation.class.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php // $Id: $
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004-2007 Dokeos S.A.
  6. Copyright (c) 2003 Ghent University (UGent)
  7. Copyright (c) 2001 Universite catholique de Louvain (UCL)
  8. Copyright (c) Bart Mollet (bart.mollet@hogent.be)
  9. For a full list of contributors, see "credits.txt".
  10. The full license can be read in "license.txt".
  11. This program is free software; you can redistribute it and/or
  12. modify it under the terms of the GNU General Public License
  13. as published by the Free Software Foundation; either version 2
  14. of the License, or (at your option) any later version.
  15. See the GNU General Public License for more details.
  16. Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  17. Mail: info@dokeos.com
  18. ==============================================================================
  19. */
  20. require_once('Resource.class.php');
  21. /**
  22. * An SurveyInvitation
  23. * @author Yannick Warnier <yannick.warnier@dokeos.com>
  24. * @package dokeos.backup
  25. */
  26. class SurveyInvitation extends Resource
  27. {
  28. /**
  29. * Survey code
  30. */
  31. var $code;
  32. /**
  33. * User info
  34. */
  35. var $user;
  36. /**
  37. * Invitation code
  38. */
  39. var $invitation_code;
  40. /**
  41. * Invitation date
  42. */
  43. var $invitation_date;
  44. /**
  45. * Reminder date
  46. */
  47. var $reminder_date;
  48. /**
  49. * Create a new SurveyInvitation
  50. * @param int $id
  51. * @param string $code
  52. * @param string $user
  53. * @param string $invitation_code
  54. * @param string $invitation_date
  55. * @param string $reminder_date
  56. */
  57. function SurveyInvitation($id,$code,$user,$invitation_code,$invitation_date,$reminder_date)
  58. {
  59. parent::Resource($id,RESOURCE_SURVEYINVITATION);
  60. $this->code = $code;
  61. $this->user = $user;
  62. $this->invitation_code = $invitation_code;
  63. $this->invitation_date = $invitation_date;
  64. $this->reminder_date = $reminder_date;
  65. }
  66. /**
  67. * Show this invitation
  68. */
  69. function show()
  70. {
  71. parent::show();
  72. echo $this->invitation_code;
  73. }
  74. }
  75. ?>