cvs: pear /Calendar Year.php

From: Date: Sat, 22 Oct 2005 10:25:42 +0000
Subject: cvs: pear /Calendar Year.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35783@lists.php.net to get a copy of this message
quipo Sat Oct 22 06:25:42 2005 EDT Modified files: /pear/Calendar Year.php Log: use defineFirstDayOfWeek() http://cvs.php.net/diff.php/pear/Calendar/Year.php?r1=1.3&r2=1.4&ty=u Index: pear/Calendar/Year.php diff -u pear/Calendar/Year.php:1.3 pear/Calendar/Year.php:1.4 --- pear/Calendar/Year.php:1.3 Thu Oct 20 14:43:42 2005 +++ pear/Calendar/Year.php Sat Oct 22 06:25:39 2005 @@ -17,11 +17,11 @@ // | Authors: Harry Fuecks <hfuecks@phppatterns.com> | // +----------------------------------------------------------------------+ // -// $Id: Year.php,v 1.3 2005/10/20 18:43:42 quipo Exp $ +// $Id: Year.php,v 1.4 2005/10/22 10:25:39 quipo Exp $ // /** * @package Calendar - * @version $Id: Year.php,v 1.3 2005/10/20 18:43:42 quipo Exp $ + * @version $Id: Year.php,v 1.4 2005/10/22 10:25:39 quipo Exp $ */ /** @@ -81,19 +81,10 @@ function build($sDates = array(), $firstDay = null) { require_once CALENDAR_ROOT.'Factory.php'; - if (is_null($firstDay)) { - $firstDay = $this->cE->getFirstDayOfWeek( - $this->thisYear(), - $this->thisMonth(), - $this->thisDay() - ); - } - if (!defined ('CALENDAR_FIRST_DAY_OF_WEEK')) { - define ('CALENDAR_FIRST_DAY_OF_WEEK', $firstDay); - } + $this->firstDay = $this->defineFirstDayOfWeek($firstDay); $monthsInYear = $this->cE->getMonthsInYear($this->thisYear()); for ($i=1; $i <= $monthsInYear; $i++) { - $this->children[$i] = Calendar_Factory::create('Month',$this->year,$i); + $this->children[$i] = Calendar_Factory::create('Month', $this->year, $i); } if (count($sDates) > 0) { $this->setSelection($sDates);

« previous php.pear.cvs (#35783) next »