12345678910111213141516171819202122232425262728293031 |
- <?php
- require_once 'Resource.class.php';
- class ForumPost extends Resource
- {
-
- public function __construct($obj)
- {
- parent::__construct($obj->post_id, RESOURCE_FORUMPOST);
- $this->obj = $obj;
- }
-
- public function show()
- {
- parent::show();
- echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')';
- }
- }
|