CourseDescription.class.php 981 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Coursecopy;
  4. require_once 'Resource.class.php';
  5. /**
  6. * A course description
  7. * @author Bart Mollet <bart.mollet@hogent.be>
  8. * @package chamilo.backup
  9. */
  10. class CourseDescription extends Resource
  11. {
  12. /**
  13. * The title
  14. */
  15. public $title;
  16. /**
  17. * The content
  18. */
  19. public $content;
  20. /**
  21. * The description type
  22. */
  23. public $description_type;
  24. /**
  25. * Create a new course description
  26. * @param int $id
  27. * @param string $title
  28. * @param string $content
  29. */
  30. public function __construct($id, $title, $content, $description_type)
  31. {
  32. parent::__construct($id, RESOURCE_COURSEDESCRIPTION);
  33. $this->title = $title;
  34. $this->content = $content;
  35. $this->description_type = $description_type;
  36. }
  37. /**
  38. * Show this Event
  39. */
  40. public function show()
  41. {
  42. parent::show();
  43. echo $this->title;
  44. }
  45. }