wiki.class.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Class for migrating the wiki
  5. * Wiki backup script
  6. * @package chamilo.backup
  7. * @author Matthias Crauwels <matthias.crauwels@UGent.be>, Ghent University
  8. */
  9. class Wiki extends Resource
  10. {
  11. var $id;
  12. var $page_id;
  13. var $reflink;
  14. var $title;
  15. var $content;
  16. var $user_id;
  17. var $group_id;
  18. var $timestamp;
  19. var $progress;
  20. var $version;
  21. public function __construct(
  22. $id,
  23. $page_id,
  24. $reflink,
  25. $title,
  26. $content,
  27. $user_id,
  28. $group_id,
  29. $timestamp,
  30. $progress,
  31. $version
  32. ) {
  33. parent::__construct($id,RESOURCE_WIKI);
  34. $this->id = $id;
  35. $this->page_id = $page_id;
  36. $this->reflink = $reflink;
  37. $this->title = $title;
  38. $this->content = $content;
  39. $this->user_id = $user_id;
  40. $this->group_id = $group_id;
  41. $this->dtime = $timestamp;
  42. $this->progress = $progress;
  43. $this->version = $version;
  44. }
  45. function show()
  46. {
  47. parent::show();
  48. echo $this->reflink.' ('. (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' . $this->group_id) .') ' . '<i>(' . $this->dtime . ')</i>';
  49. }
  50. }