123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?php
- require_once('Resource.class.php');
- class ForumPost extends Resource
- {
-
- var $title;
-
- var $text;
-
- var $post_time;
-
- var $poster_ip;
-
- var $firstname;
-
- var $lastname;
-
- var $topic_notify;
-
- var $parent_post_id;
-
- var $topic_id;
-
- function ForumPost($id,$title,$text,$post_time,$poster_ip,$firstname,$lastname,$topic_notify,$parent_post_id,$topic_id)
- {
- parent::Resource($id,RESOURCE_FORUMPOST);
- $this->title = $title;
- $this->text = $text;
- $this->post_time = $post_time;
- $this->poster_ip = $poster_ip;
- $this->firstname = $firstname;
- $this->lastname = $lastname;
- $this->topic_notify = $topic_notify;
- $this->parent_post_id = $parent_post_id;
- $this->topic_id = $topic_id;
- }
-
- function show()
- {
- parent::show();
- echo $this->title.' ('.$this->firstname.' '.$this->lastname.', '.$this->post_time.')';
- }
- }
- ?>
|