*/ class ForumPost extends Resource { /** * The title */ var $title; /** * The text */ var $text; /** * The time */ var $post_time; /** * Poster-ip */ var $poster_ip; /** * Poster firstname */ var $firstname; /** * Poster lastname */ var $lastname; /** * Topic notify */ var $topic_notify; /** * Parent post */ var $parent_post_id; /** * Topic id */ var $topic_id; /** * Create a new ForumPost */ 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; } /** * Show this resource */ function show() { parent::show(); echo $this->title.' ('.$this->firstname.' '.$this->lastname.', '.$this->post_time.')'; } } ?>