CourseCopyTestCategory.php 907 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once 'Resource.class.php';
  4. /**
  5. * Class CourseCopyTestcategory
  6. * @author Hubert Borderiou <hubert.borderiou@grenet.fr>
  7. * @package chamilo.backup
  8. */
  9. class CourseCopyTestcategory extends Resource
  10. {
  11. /**
  12. * The title
  13. */
  14. var $title;
  15. /**
  16. * The description
  17. */
  18. var $description;
  19. /**
  20. * Create a new TestCategory
  21. * @param string $title
  22. * @param string $description
  23. */
  24. function CourseCopyTestcategory($id, $title, $description) {
  25. parent::Resource($id, RESOURCE_TEST_CATEGORY);
  26. $this->title = $title;
  27. $this->description = $description;
  28. }
  29. /**
  30. * Show the test_category title, used in the partial recycle_course.php form
  31. */
  32. function show()
  33. {
  34. parent::show();
  35. echo $this->title;
  36. }
  37. }