CourseDescription.class.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php // $Id: CourseDescription.class.php 4940 2005-05-10 13:46:14Z bmol $
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004 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. Copyright (c) Isaac flores <florespaz_isaac@hotmail.com>
  10. For a full list of contributors, see "credits.txt".
  11. The full license can be read in "license.txt".
  12. This program is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU General Public License
  14. as published by the Free Software Foundation; either version 2
  15. of the License, or (at your option) any later version.
  16. See the GNU General Public License for more details.
  17. Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  18. Mail: info@dokeos.com
  19. ==============================================================================
  20. */
  21. require_once 'Resource.class.php';
  22. /**
  23. * A course description
  24. * @author Bart Mollet <bart.mollet@hogent.be>
  25. */
  26. class CourseDescription extends Resource
  27. {
  28. /**
  29. * The title
  30. */
  31. var $title;
  32. /**
  33. * The content
  34. */
  35. var $content;
  36. /**
  37. * The description type
  38. */
  39. var $description_type;
  40. /**
  41. * Create a new course description
  42. * @param int $id
  43. * @param string $title
  44. * @param string $content
  45. */
  46. function CourseDescription($id,$title,$content,$description_type)
  47. {
  48. parent::Resource($id,RESOURCE_COURSEDESCRIPTION);
  49. $this->title = $title;
  50. $this->content = $content;
  51. $this->description_type = $description_type;
  52. }
  53. /**
  54. * Show this Event
  55. */
  56. function show()
  57. {
  58. parent::show();
  59. echo $this->title;
  60. }
  61. }
  62. ?>