ForumCategory.class.php 559 B

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