123456789101112131415161718192021222324252627282930 |
- <?php
- /* For licensing terms, see /license.txt */
- require_once 'Resource.class.php';
- /**
- * A forum-post
- * @author Bart Mollet <bart.mollet@hogent.be>
- * @package chamilo.backup
- */
- class ForumPost extends Coursecopy\Resource
- {
- /**
- * Create a new ForumPost
- */
- public function __construct($obj)
- {
- parent::__construct($obj->post_id, RESOURCE_FORUMPOST);
- $this->obj = $obj;
- }
- /**
- * Show this resource
- */
- public function show()
- {
- parent::show();
- echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')';
- }
- }
|