LinkCategory.class.php 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Link category backup script
  5. * @package chamilo.backup
  6. */
  7. /**
  8. * Code
  9. */
  10. require_once 'Resource.class.php';
  11. /**
  12. * A LinkCategory
  13. * @author Bart Mollet <bart.mollet@hogent.be>
  14. * @package chamilo.backup
  15. */
  16. class LinkCategory extends Resource
  17. {
  18. /**
  19. * The title
  20. */
  21. var $title;
  22. /**
  23. * The description
  24. */
  25. var $description;
  26. /**
  27. * The display order
  28. */
  29. var $display_order;
  30. /**
  31. * Create a new LinkCategory
  32. * @param int $id
  33. * @param string $title
  34. * @param string $description
  35. */
  36. function LinkCategory($id,$title,$description,$display_order)
  37. {
  38. parent::Resource($id,RESOURCE_LINKCATEGORY);
  39. $this->title = $title;
  40. $this->description = $description;
  41. $this->display_order = $display_order;
  42. }
  43. /**
  44. * Show this LinkCategory
  45. */
  46. function show()
  47. {
  48. parent::show();
  49. echo $this->title.' '.$this->description.'<br />';
  50. }
  51. }