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

Source for file Announcement.class.php

Documentation is available at Announcement.class.php

  1. <?php // $Id: Announcement.class.php 11326 2007-03-02 10:34:18Z 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.  * An announcement
  28.  * @author Bart Mollet <bart.mollet@hogent.be>
  29.  * @package dokeos.backup
  30.  */
  31. class Announcement extends Resource
  32. {
  33.     /**
  34.      * The title of the announcement
  35.      */
  36.     var $title;
  37.     /**
  38.      * The content of the announcement
  39.      */
  40.     var $content;
  41.     /**
  42.      * The date on which this announcement was made
  43.      */
  44.     var $date;
  45.     /**
  46.      * The display order of this announcement
  47.      */
  48.     var $display_order;
  49.     /**
  50.      * Has the e-mail been sent?
  51.      */
  52.     var $email_sent;
  53.     /**
  54.      * Create a new announcement
  55.      * @param int $id 
  56.      * @param string $title 
  57.      * @param string $content 
  58.      * @param string $date 
  59.      * @param int display_order
  60.      */
  61.     function Announcement($id,$title,$content,$date,$display_order,$email_sent)
  62.     {
  63.         parent::Resource($id,RESOURCE_ANNOUNCEMENT);
  64.         $this->content = $content;
  65.         $this->title = $title;
  66.         $this->date = $date;
  67.         $this->display_order = $display_order;
  68.         $this->email_sent = $email_sent;
  69.     }
  70.     /**
  71.      * Show this announcement
  72.      */
  73.     function show()
  74.     {
  75.         parent::show();
  76.         echo $this->date.': '.$this->title;    
  77.     }
  78. }
  79. ?>

Documentation generated on Thu, 12 Jun 2008 12:57:36 -0500 by phpDocumentor 1.4.1