Glossary.class.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php // $Id: Document.class.php 4733 2005-05-02 08:54:49Z 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. * Add resource glossary
  23. * @author Isaac flores <florespaz@bidsoftperu.com>
  24. * @package dokeos.backup
  25. */
  26. class Glossary extends Resource
  27. {
  28. public $glossary_id;
  29. public $name;
  30. public $description;
  31. public $display_order;
  32. /**
  33. * Create a new Glossary
  34. * @param int $id
  35. * @param string $name
  36. * @param string $description
  37. * @param int $display_order
  38. */
  39. function Glossary($id,$name,$description,$display_order)
  40. {
  41. parent::Resource($id,RESOURCE_GLOSSARY);
  42. $this->glossary_id = $id;
  43. $this->name = $name;
  44. $this->description = $description;
  45. $this->display_order = $display_order;
  46. }
  47. /**
  48. * Show this glossary
  49. */
  50. function show() {
  51. parent::show();
  52. echo $this->name;
  53. }
  54. }
  55. ?>