CourseCopyTestCategory.php 911 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. public function __construct($id, $title, $description)
  25. {
  26. parent::__construct($id, RESOURCE_TEST_CATEGORY);
  27. $this->title = $title;
  28. $this->description = $description;
  29. }
  30. /**
  31. * Show the test_category title, used in the partial recycle_course.php form
  32. */
  33. function show()
  34. {
  35. parent::show();
  36. echo $this->title;
  37. }
  38. }