CalendarDay.class.php

Go to the documentation of this file.
00001 <?php
00002 /***************************************************************************
00003  *   Copyright (C) 2006-2007 by Anton E. Lebedevich                        *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU Lesser General Public License as        *
00007  *   published by the Free Software Foundation; either version 3 of the    *
00008  *   License, or (at your option) any later version.                       *
00009  *                                                                         *
00010  ***************************************************************************/
00011 /* $Id: CalendarDay.class.php 4687 2007-12-09 18:57:18Z voxus $ */
00012 
00018     final class CalendarDay extends Date
00019     {
00020         private $selected   = null;
00021         private $outside    = null;
00022         
00026         public static function create($timestamp)
00027         {
00028             return new self($timestamp);
00029         }
00030         
00031         public function isSelected()
00032         {
00033             return $this->selected === true;
00034         }
00035         
00039         public function setSelected($selected)
00040         {
00041             $this->selected = $selected === true;
00042             
00043             return $this;
00044         }
00045         
00046         public function isOutside()
00047         {
00048             return $this->outside;
00049         }
00050         
00054         public function setOutside($outside)
00055         {
00056             $this->outside = $outside === true;
00057             
00058             return $this;
00059         }
00060     }
00061 ?>

Generated on Sun Dec 9 21:56:23 2007 for onPHP by  doxygen 1.5.4