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

Source for file Forum.class.php

Documentation is available at Forum.class.php

  1. <?php // $Id: Forum.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
  28.  * @author Bart Mollet <bart.mollet@hogent.be>
  29.  */
  30. class Forum extends Resource
  31. {
  32.     /**
  33.      * The title
  34.      */
  35.     var $title;
  36.     /**
  37.      * The description
  38.      */
  39.     var $description;
  40.     /**
  41.      * Category-id
  42.      */
  43.     var $category_id;
  44.     /**
  45.      * 
  46.      */
  47.     var $last_post;
  48.     /**
  49.      * Create a new ForumPost
  50.      */
  51.     function Forum($id,$title,$description,$category_id,$last_post)
  52.     {
  53.         parent::Resource($id,RESOURCE_FORUM);
  54.         $this->title = $title;
  55.         $this->description = $description;
  56.         $this->category_id = $category_id;
  57.         $this->last_post = $last_post;
  58.     }
  59.     /**
  60.      * Show this resource
  61.      */
  62.     function show()
  63.     {
  64.         parent::show();
  65.         echo $this->title;    
  66.     }
  67. }
  68. ?>

Documentation generated on Thu, 12 Jun 2008 13:30:44 -0500 by phpDocumentor 1.4.1