Source for file ACalendar.php

Documentation is available at ACalendar.php

  1. <?php
  2. /**
  3.  * @author Jordan CM Wambaugh
  4.  * @package Alia
  5.  * @subpackage Widgets
  6.  *
  7.  */
  8.  
  9.  
  10. /**
  11.  *
  12.  *@author Jordan CM Wambaugh
  13.  * @package Alia
  14.  * @subpackage Widgets
  15.  * 
  16.  *
  17.  */
  18. class ACalendar extends AWidget{
  19.     
  20.     private  $months = array(1=>array('January',31)
  21.             ,2=>array('February',28)
  22.             ,3=>array('March',31)
  23.             ,4=>array('April',30)
  24.             ,5=>array('May',31)
  25.             ,6=>array('June',30)
  26.             ,7=>array('July',31)
  27.             ,8=>array('August',31)
  28.             ,9=>array('September',30)
  29.             ,10=>array('October',31)
  30.             ,11=>array('November',30)
  31.             ,12=>array('December',31));
  32.     private $month;
  33.     
  34.     public function __construct(){
  35.         $this->month = 3;
  36.         
  37.     }
  38.     
  39.     public function render(){
  40.         
  41.         $buffer"<div style ='overflow:hidden;'><div>{$this->months[$this->month][0]}</div>";
  42.  
  43.         for($x=1;$x<=$this->months[$this->month][1];$x++){
  44.             $buffer.="<div style='float:left;width:14%;'>$x</div>";
  45.         }
  46.         $buffer.="</div>";
  47.         return $buffer;
  48.     }
  49.  
  50. }

Documentation generated on Fri, 11 Jul 2008 13:28:39 -0400 by phpDocumentor 1.4.2