Ejemplo n.º 1
0
 /**
  * Return a set of arrays to construct a calendar year for the given date
  *
  * @param int $year
  *        	the year in four digit format, default current local year
  * @param string $format
  *        	the string indicating how to format the output
  *        	
  * @return array $year[$month][$row][$col]
  *        
  * @access public
  * @static
  *
  */
 static function getCalendarYear($year = 0, $format = DATE_CALC_FORMAT)
 {
     if (empty($year)) {
         $year = Calc::dateNow('%Y');
     }
     $year_array = array();
     for ($curr_month = 0; $curr_month <= 11; $curr_month++) {
         $year_array[$curr_month] = Calc::getCalendarMonth($curr_month + 1, $year, $format);
     }
     return $year_array;
 }