dokeos
[ class tree: dokeos ] [ index: dokeos ] [ all elements ]

Source for file ForumPost.class.php

Documentation is available at ForumPost.class.php

  1. <?php // $Id: ForumPost.class.php 3305 2005-02-03 12:44:01Z bmol $
  2. /*
  3. ============================================================================== 
  4.     Dokeos - elearning and course management software
  5.     
  6.     Copyright (c) 2004 Dokeos S.A.
  7.     Copyright (c) 2003 Ghent University (UGent)
  8.     Copyright (c) 2001 Universite catholique de Louvain (UCL)
  9.     Copyright (c) Bart Mollet (bart.mollet@hogent.be)
  10.     
  11.     For a full list of contributors, see "credits.txt".
  12.     The full license can be read in "license.txt".
  13.     
  14.     This program is free software; you can redistribute it and/or
  15.     modify it under the terms of the GNU General Public License
  16.     as published by the Free Software Foundation; either version 2
  17.     of the License, or (at your option) any later version.
  18.     
  19.     See the GNU General Public License for more details.
  20.     
  21.     Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  22.     Mail: info@dokeos.com
  23. ============================================================================== 
  24. */
  25. require_once('Resource.class.php');
  26. /**
  27.  * A forum-post
  28.  * @author Bart Mollet <bart.mollet@hogent.be>
  29.  */
  30. class ForumPost extends Resource
  31. {
  32.     /**
  33.      * The title
  34.      */
  35.     var $title;
  36.     /**
  37.      * The text
  38.      */
  39.     var $text;
  40.     /**
  41.      * The time
  42.      */
  43.     var $post_time;
  44.     /**
  45.      * Poster-ip
  46.      */
  47.     var $poster_ip;
  48.     /**
  49.      * Poster firstname
  50.      */
  51.      var $firstname;
  52.      /**
  53.       * Poster lastname
  54.       */
  55.      var $lastname;
  56.      /**
  57.       * Topic notify
  58.       */
  59.      var $topic_notify;
  60.      /**
  61.       * Parent post
  62.       */
  63.      var $parent_post_id;
  64.      /**
  65.       * Topic id
  66.       */
  67.      var $topic_id;
  68.     /**
  69.      * Create a new ForumPost
  70.      */
  71.     function ForumPost($id,$title,$text,$post_time,$poster_ip,$firstname,$lastname,$topic_notify,$parent_post_id,$topic_id)
  72.     {
  73.         parent::Resource($id,RESOURCE_FORUMPOST);
  74.         $this->title = $title;
  75.         $this->text = $text;
  76.         $this->post_time = $post_time;
  77.         $this->poster_ip = $poster_ip;
  78.         $this->firstname = $firstname;
  79.         $this->lastname = $lastname;
  80.         $this->topic_notify = $topic_notify;
  81.         $this->parent_post_id = $parent_post_id;
  82.         $this->topic_id = $topic_id;
  83.     }
  84.     /**
  85.      * Show this resource
  86.      */
  87.     function show()
  88.     {
  89.         parent::show();
  90.         echo $this->title.' ('.$this->firstname.' '.$this->lastname.', '.$this->post_time.')';    
  91.     }
  92. }
  93. ?>

Documentation generated on Thu, 12 Jun 2008 13:32:04 -0500 by phpDocumentor 1.4.1