ForumCategory.class.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php // $Id: ForumCategory.class.php 3990 2005-03-31 09:55:18Z bmol $
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004 Dokeos S.A.
  6. Copyright (c) 2003 Ghent University (UGent)
  7. Copyright (c) 2001 Universite catholique de Louvain (UCL)
  8. Copyright (c) Bart Mollet (bart.mollet@hogent.be)
  9. For a full list of contributors, see "credits.txt".
  10. The full license can be read in "license.txt".
  11. This program is free software; you can redistribute it and/or
  12. modify it under the terms of the GNU General Public License
  13. as published by the Free Software Foundation; either version 2
  14. of the License, or (at your option) any later version.
  15. See the GNU General Public License for more details.
  16. Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  17. Mail: info@dokeos.com
  18. ==============================================================================
  19. */
  20. require_once('Resource.class.php');
  21. /**
  22. * A forum-category
  23. * @author Bart Mollet <bart.mollet@hogent.be>
  24. */
  25. class ForumCategory extends Resource
  26. {
  27. /**
  28. * The title
  29. */
  30. var $title;
  31. /**
  32. * Create a new ForumCategory
  33. */
  34. function ForumCategory($id,$title)
  35. {
  36. parent::Resource($id,RESOURCE_FORUMCATEGORY);
  37. $this->title = $title;
  38. }
  39. /**
  40. * Show this resource
  41. */
  42. function show()
  43. {
  44. parent::show();
  45. echo $this->title;
  46. }
  47. }
  48. ?>