*/ class ForumTopic extends Resource { /** * The title */ var $title; /** * The time */ var $time; /** * Poster firstname */ var $firstname; /** * Poster lastname */ var $lastname; /** * Topic notify */ var $topic_notify; /** * Parent forum */ var $forum_id; /** * Last post */ var $last_post; /** * Create a new ForumTopic */ function ForumTopic($id,$title,$time,$firstname,$lastname,$topic_notify,$forum_id,$last_post) { parent::Resource($id,RESOURCE_FORUMTOPIC); $this->title = $title; $this->time = $time; $this->firstname = $firstname; $this->lastname = $lastname; $this->topic_notify = $topic_notify; $this->forum_id = $forum_id; $this->last_post = $last_post; } /** * Show this resource */ function show() { parent::show(); echo $this->title.' ('.$this->firstname.' '.$this->lastname.', '.$this->topic_time.')'; } } ?>