wiki.class.php 1.1 KB

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