CourseDescription.class.php 802 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. var $title;
  15. /**
  16. * The content
  17. */
  18. var $content;
  19. /**
  20. * The description type
  21. */
  22. var $description_type;
  23. /**
  24. * Create a new course description
  25. * @param int $id
  26. * @param string $title
  27. * @param string $content
  28. */
  29. function __construct($id,$title,$content,$description_type) {
  30. parent::Resource($id,RESOURCE_COURSEDESCRIPTION);
  31. $this->title = $title;
  32. $this->content = $content;
  33. $this->description_type = $description_type;
  34. }
  35. /**
  36. * Show this Event
  37. */
  38. function show() {
  39. parent::show();
  40. echo $this->title;
  41. }
  42. }