cvs: pear /Calendar/Month Weekdays.php Weeks.php

From: Date: Sat, 22 Oct 2005 10:28:49 +0000
Subject: cvs: pear /Calendar/Month Weekdays.php Weeks.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35785@lists.php.net to get a copy of this message
quipo Sat Oct 22 06:28:49 2005 EDT Modified files: /pear/Calendar/Month Weekdays.php Weeks.php Log: $firstDay parameter now defaults to NULL for consistency $this->firstDay is set in the Calendar_Month parent class http://cvs.php.net/diff.php/pear/Calendar/Month/Weekdays.php?r1=1.3&r2=1.4&ty=u Index: pear/Calendar/Month/Weekdays.php diff -u pear/Calendar/Month/Weekdays.php:1.3 pear/Calendar/Month/Weekdays.php:1.4 --- pear/Calendar/Month/Weekdays.php:1.3 Thu Oct 20 05:14:01 2005 +++ pear/Calendar/Month/Weekdays.php Sat Oct 22 06:28:49 2005 @@ -17,11 +17,11 @@ // | Authors: Harry Fuecks <hfuecks@phppatterns.com> | // +----------------------------------------------------------------------+ // -// $Id: Weekdays.php,v 1.3 2005/10/20 09:14:01 quipo Exp $ +// $Id: Weekdays.php,v 1.4 2005/10/22 10:28:49 quipo Exp $ // /** * @package Calendar - * @version $Id: Weekdays.php,v 1.3 2005/10/20 09:14:01 quipo Exp $ + * @version $Id: Weekdays.php,v 1.4 2005/10/22 10:28:49 quipo Exp $ */ /** @@ -88,10 +88,9 @@ * @param int (optional) first day of week (e.g. 0 for Sunday, 2 for Tuesday etc.) * @access public */ - function Calendar_Month_Weekdays($y, $m, $firstDay=false) + function Calendar_Month_Weekdays($y, $m, $firstDay=null) { - Calendar_Month::Calendar_Month($y, $m); - $this->firstDay = $firstDay; + Calendar_Month::Calendar_Month($y, $m, $firstDay); } /** @@ -107,7 +106,7 @@ */ function build($sDates=array()) { - require_once CALENDAR_ROOT.'Table'.DIRECTORY_SEPARATOR.'Helper.php'; + require_once CALENDAR_ROOT.'Table/Helper.php'; $this->tableHelper = & new Calendar_Table_Helper($this, $this->firstDay); Calendar_Month::build($sDates); $this->buildEmptyDaysBefore(); http://cvs.php.net/diff.php/pear/Calendar/Month/Weeks.php?r1=1.2&r2=1.3&ty=u Index: pear/Calendar/Month/Weeks.php diff -u pear/Calendar/Month/Weeks.php:1.2 pear/Calendar/Month/Weeks.php:1.3 --- pear/Calendar/Month/Weeks.php:1.2 Mon Aug 16 08:09:27 2004 +++ pear/Calendar/Month/Weeks.php Sat Oct 22 06:28:49 2005 @@ -18,11 +18,11 @@ // | Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: Weeks.php,v 1.2 2004/08/16 12:09:27 hfuecks Exp $ +// $Id: Weeks.php,v 1.3 2005/10/22 10:28:49 quipo Exp $ // /** * @package Calendar - * @version $Id: Weeks.php,v 1.2 2004/08/16 12:09:27 hfuecks Exp $ + * @version $Id: Weeks.php,v 1.3 2005/10/22 10:28:49 quipo Exp $ */ /** @@ -79,10 +79,9 @@ * @param int (optional) first day of week (e.g. 0 for Sunday, 2 for Tuesday etc.) * @access public */ - function Calendar_Month_Weeks($y, $m, $firstDay=false) + function Calendar_Month_Weeks($y, $m, $firstDay=null) { - Calendar_Month::Calendar_Month($y, $m); - $this->firstDay = $firstDay; + Calendar_Month::Calendar_Month($y, $m, $firstDay); } /** @@ -94,7 +93,7 @@ */ function build($sDates=array()) { - require_once CALENDAR_ROOT.'Table'.DIRECTORY_SEPARATOR.'Helper.php'; + require_once CALENDAR_ROOT.'Table/Helper.php'; $this->tableHelper = & new Calendar_Table_Helper($this, $this->firstDay); require_once CALENDAR_ROOT.'Week.php'; $numWeeks = $this->tableHelper->getNumWeeks();

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