[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-cvs
Subject: [PEAR-CVS] cvs: pear /Calendar/Table Helper.php
From: "Lorenzo Alberton" <quipo () php ! net>
Date: 2007-10-31 18:27:37
Message-ID: cvsquipo1193855257 () cvsserver
[Download RAW message or body]
quipo Wed Oct 31 18:27:37 2007 UTC
Modified files:
/pear/Calendar/Table Helper.php
Log:
phpdoc CS
http://cvs.php.net/viewvc.cgi/pear/Calendar/Table/Helper.php?r1=1.7&r2=1.8&diff_format=u
Index: pear/Calendar/Table/Helper.php
diff -u pear/Calendar/Table/Helper.php:1.7 pear/Calendar/Table/Helper.php:1.8
--- pear/Calendar/Table/Helper.php:1.7 Mon Oct 22 12:51:16 2007
+++ pear/Calendar/Table/Helper.php Wed Oct 31 18:27:37 2007
@@ -27,25 +27,25 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * @category Date and Time
- * @package Calendar
- * @author Harry Fuecks <hfuecks@phppatterns.com>
- * @copyright 2003-2007 Harry Fuecks
- * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause)
- * @version CVS: $Id: Helper.php,v 1.7 2007/10/22 12:51:16 quipo Exp $
- * @link http://pear.php.net/package/Calendar
+ * @category Date and Time
+ * @package Calendar
+ * @author Harry Fuecks <hfuecks@phppatterns.com>
+ * @copyright 2003-2007 Harry Fuecks
+ * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause)
+ * @version CVS: $Id: Helper.php,v 1.8 2007/10/31 18:27:37 quipo Exp $
+ * @link http://pear.php.net/package/Calendar
*/
/**
* Used by Calendar_Month_Weekdays, Calendar_Month_Weeks and Calendar_Week to
* help with building the calendar in tabular form
*
- * @category Date and Time
- * @package Calendar
- * @author Harry Fuecks <hfuecks@phppatterns.com>
- * @copyright 2003-2007 Harry Fuecks
- * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause)
- * @link http://pear.php.net/package/Calendar
+ * @category Date and Time
+ * @package Calendar
+ * @author Harry Fuecks <hfuecks@phppatterns.com>
+ * @copyright 2003-2007 Harry Fuecks
+ * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause)
+ * @link http://pear.php.net/package/Calendar
* @access public
*/
class Calendar_Table_Helper
@@ -108,8 +108,10 @@
/**
* Constructs Calendar_Table_Helper
+ *
* @param object Calendar_Month_Weekdays, Calendar_Month_Weeks, Calendar_Week
* @param int (optional) first day of the week e.g. 1 for Monday
+ *
* @access protected
*/
function Calendar_Table_Helper(& $calendar, $firstDay=null)
@@ -130,6 +132,7 @@
/**
* Constructs $this->daysOfWeek based on $this->firstDay
+ *
* @return void
* @access private
*/
@@ -158,6 +161,7 @@
/**
* Constructs $this->daysOfMonth
+ *
* @return void
* @access private
*/
@@ -192,9 +196,10 @@
/**
* Returns the first day of the month
- * @see Calendar_Engine_Interface::getFirstDayOfWeek()
+ *
* @return int
* @access protected
+ * @see Calendar_Engine_Interface::getFirstDayOfWeek()
*/
function getFirstDay()
{
@@ -203,6 +208,7 @@
/**
* Returns the order array of days in a week
+ *
* @return int
* @access protected
*/
@@ -213,6 +219,7 @@
/**
* Returns the number of tabular weeks in a month
+ *
* @return int
* @access protected
*/
@@ -223,6 +230,7 @@
/**
* Returns the number of real days + empty days
+ *
* @return int
* @access protected
*/
@@ -233,6 +241,7 @@
/**
* Returns the number of empty days before the real days begin
+ *
* @return int
* @access protected
*/
@@ -243,6 +252,7 @@
/**
* Returns the index of the last real day in the month
+ *
* @todo Potential performance optimization with static
* @return int
* @access protected
@@ -261,6 +271,7 @@
/**
* Returns the index of the last real day in the month, relative to the
* beginning of the tabular week it is part of
+ *
* @return int
* @access protected
*/
@@ -272,11 +283,12 @@
$this->calendar->thisYear(),
$this->calendar->thisMonth(),
$this->calendar->thisDay()
- ) * ($this->numWeeks-1) );
+ ) * ($this->numWeeks-1));
}
/**
* Returns the timestamp of the first day of the current week
+ *
*/
function getWeekStart($y, $m, $d, $firstDay=1)
{
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic