Glossary.class.php 838 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Glossary backup script
  5. * @package chamilo.backup
  6. */
  7. /**
  8. * Code
  9. */
  10. require_once 'Resource.class.php';
  11. /**
  12. * Add resource glossary
  13. * @author Isaac flores
  14. * @package chamilo.backup
  15. */
  16. class Glossary extends Resource
  17. {
  18. public $glossary_id;
  19. public $name;
  20. public $description;
  21. public $display_order;
  22. /**
  23. * Create a new Glossary
  24. * @param int $id
  25. * @param string $name
  26. * @param string $description
  27. * @param int $display_order
  28. */
  29. function Glossary($id,$name,$description,$display_order)
  30. {
  31. parent::Resource($id,RESOURCE_GLOSSARY);
  32. $this->glossary_id = $id;
  33. $this->name = $name;
  34. $this->description = $description;
  35. $this->display_order = $display_order;
  36. }
  37. /**
  38. * Show this glossary
  39. */
  40. function show() {
  41. parent::show();
  42. echo $this->name;
  43. }
  44. }