CourseDescription.class.php 805 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. {
  31. parent::Resource($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. }