Glossary.class.php 788 B

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