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

Source for file ForumTopic.class.php

Documentation is available at ForumTopic.class.php

  1. <?php // $Id: ForumTopic.class.php 11365 2007-03-03 10:49:33Z yannoo $
  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-topic/thread
  28.  * @author Bart Mollet <bart.mollet@hogent.be>
  29.  */
  30. class ForumTopic extends Resource
  31. {
  32.     /**
  33.      * The title
  34.      */
  35.     var $title;
  36.     /**
  37.      * The time
  38.      */
  39.     var $time;
  40.     /**
  41.      * Poster firstname
  42.      */
  43.      var $firstname;
  44.      /**
  45.       * Poster lastname
  46.       */
  47.      var $lastname;
  48.      /**
  49.       * Topic notify
  50.       */
  51.      var $topic_notify;
  52.      /**
  53.       * Parent forum
  54.       */
  55.      var $forum_id;
  56.      /**
  57.       * Last post
  58.       */
  59.      var $last_post;
  60.     /**
  61.      * Create a new ForumTopic
  62.      */
  63.     function ForumTopic($id,$title,$time,$firstname,$lastname,$topic_notify,$forum_id,$last_post)
  64.     {
  65.         parent::Resource($id,RESOURCE_FORUMTOPIC);
  66.         $this->title = $title;
  67.         $this->time = $time;
  68.         $this->firstname = $firstname;
  69.         $this->lastname = $lastname;
  70.         $this->topic_notify = $topic_notify;
  71.         $this->forum_id = $forum_id;
  72.         $this->last_post = $last_post;
  73.     }
  74.     /**
  75.      * Show this resource
  76.      */
  77.     function show()
  78.     {
  79.         parent::show();
  80.         echo $this->title.' ('.$this->firstname.' '.$this->lastname.', '.$this->topic_time.')';    
  81.     }
  82. }
  83. ?>

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