ForumPost.class.php 670 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Forum post backup script
  5. * @package chamilo.backup
  6. */
  7. /**
  8. * Code
  9. */
  10. require_once 'Resource.class.php';
  11. /**
  12. * A forum-post
  13. * @author Bart Mollet <bart.mollet@hogent.be>
  14. * @package chamilo.backup
  15. */
  16. class ForumPost extends Resource {
  17. /**
  18. * Create a new ForumPost
  19. */
  20. function ForumPost($obj) {
  21. parent::Resource($obj->post_id, RESOURCE_FORUMPOST);
  22. $this->obj = $obj;
  23. }
  24. /**
  25. * Show this resource
  26. */
  27. function show() {
  28. parent::show();
  29. echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')';
  30. }
  31. }