ForumCategory.class.php 625 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Forum category backup class
  5. * @package chamilo.backup
  6. */
  7. /**
  8. * Code
  9. */
  10. require_once 'Resource.class.php';
  11. /**
  12. * A forum-category
  13. * @author Bart Mollet <bart.mollet@hogent.be>
  14. * @package chamilo.backup
  15. */
  16. class ForumCategory extends Resource {
  17. /**
  18. * Create a new ForumCategory
  19. */
  20. function ForumCategory($obj) {
  21. parent::Resource($obj->cat_id, RESOURCE_FORUMCATEGORY);
  22. $this->obj = $obj;
  23. }
  24. /**
  25. * Show this resource
  26. */
  27. function show() {
  28. parent::show();
  29. echo $this->obj->cat_title;
  30. }
  31. }