[ PHPXref.com ] [ Generated: Sun Jul 20 19:05:09 2008 ] [ onPHP 0.4.6 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/main/Base/ -> CalendarWeek.class.php (source)

   1  <?php
   2  /***************************************************************************
   3   *   Copyright (C) 2006 by Anton E. Lebedevich                             *
   4   *                                                                         *
   5   *   This program is free software; you can redistribute it and/or modify  *
   6   *   it under the terms of the GNU General Public License as published by  *
   7   *   the Free Software Foundation; either version 2 of the License, or     *
   8   *   (at your option) any later version.                                   *
   9   *                                                                         *
  10   ***************************************************************************/
  11  /* $Id: CalendarWeek.class.php 1684 2006-06-10 20:58:39Z voxus $ */
  12  
  13      /**
  14       * Calendar week representation.
  15       *
  16       * @ingroup Calendar
  17      **/
  18      class CalendarWeek
  19      {
  20          // TODO: quite empty class, consider replacement or pull up all methods
  21          private $days = array();
  22          
  23  		public static function create()
  24          {
  25              return new self;
  26          }
  27          
  28  		public function getDays()
  29          {
  30              return $this->days;
  31          }
  32          
  33  		public function addDay(CalendarDay $day)
  34          {
  35              $this->days[$day->toDate()] = $day;
  36          }
  37      }
  38  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]