CourseDescription.class.php 825 B

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