LinkCategory.class.php 833 B

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