wiki.class.php 1.1 KB

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