[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-cvs
Subject:    [PEAR-CVS] cvs: pear /Calendar/Month Weekdays.php Weeks.php
From:       "Lorenzo Alberton" <quipo () php ! net>
Date:       2007-10-31 18:27:26
Message-ID: cvsquipo1193855246 () cvsserver
[Download RAW message or body]

quipo		Wed Oct 31 18:27:26 2007 UTC

  Modified files:              
    /pear/Calendar/Month	Weekdays.php Weeks.php 
  Log:
  phpdoc CS
  
["quipo-20071031182726.txt" (text/plain)]

http://cvs.php.net/viewvc.cgi/pear/Calendar/Month/Weekdays.php?r1=1.6&r2=1.7&diff_format=u
Index: pear/Calendar/Month/Weekdays.php
diff -u pear/Calendar/Month/Weekdays.php:1.6 pear/Calendar/Month/Weekdays.php:1.7
--- pear/Calendar/Month/Weekdays.php:1.6	Mon Oct 22 12:51:16 2007
+++ pear/Calendar/Month/Weekdays.php	Wed Oct 31 18:27:26 2007
@@ -27,13 +27,13 @@
  * (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: Weekdays.php,v 1.6 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: Weekdays.php,v 1.7 2007/10/31 18:27:26 quipo Exp $
+ * @link      http://pear.php.net/package/Calendar
  */
 
 /**
@@ -75,13 +75,13 @@
  * }
  * </code>
  *
- * @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
+ * @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_Month_Weekdays extends Calendar_Month
 {
@@ -101,9 +101,11 @@
 
     /**
      * Constructs Calendar_Month_Weekdays
-     * @param int year e.g. 2003
-     * @param int month e.g. 5
-     * @param int (optional) first day of week (e.g. 0 for Sunday, 2 for Tuesday etc.)
+     *
+     * @param int $y        year e.g. 2003
+     * @param int $m        month e.g. 5
+     * @param int $firstDay (optional) first day of week (e.g. 0 for Sunday, 2 for Tuesday etc.)
+     *
      * @access public
      */
     function Calendar_Month_Weekdays($y, $m, $firstDay=null)
@@ -115,14 +117,16 @@
      * Builds Day objects in tabular form, to allow display of calendar month
      * with empty cells if the first day of the week does not fall on the first
      * day of the month.
+     *
+     * @param array $sDates (optional) Calendar_Day objects representing selected dates
+     *
+     * @return boolean
+     * @access public
      * @see Calendar_Day::isEmpty()
      * @see Calendar_Day_Base::isFirst()
      * @see Calendar_Day_Base::isLast()
-     * @param array (optional) Calendar_Day objects representing selected dates
-     * @return boolean
-     * @access public
      */
-    function build($sDates=array())
+    function build($sDates = array())
     {
         require_once CALENDAR_ROOT.'Table/Helper.php';
         $this->tableHelper = & new Calendar_Table_Helper($this, $this->firstDay);
@@ -136,6 +140,7 @@
 
     /**
      * Prepends empty days before the real days in the month
+     *
      * @return void
      * @access private
      */
@@ -156,12 +161,13 @@
 
     /**
      * Shifts the array of children forward, if necessary
+     *
      * @return void
      * @access private
      */
     function shiftDays()
     {
-        if (isset ($this->children[0])) {
+        if (isset($this->children[0])) {
             array_unshift($this->children, null);
             unset($this->children[0]);
         }
@@ -169,14 +175,15 @@
 
     /**
      * Appends empty days after the real days in the month
+     *
      * @return void
      * @access private
      */
     function buildEmptyDaysAfter()
     {
         $eAfter = $this->tableHelper->getEmptyDaysAfter();
-        $sDOM = $this->tableHelper->getNumTableDaysInMonth();
-        for ($i = 1; $i <= $sDOM-$eAfter; $i++) {
+        $sDOM   = $this->tableHelper->getNumTableDaysInMonth();
+        for ($i=1; $i <= $sDOM-$eAfter; $i++) {
             $Day = new Calendar_Day($this->year, $this->month+1, $i);
             $Day->setEmpty();
             $Day->adjust();
@@ -187,12 +194,13 @@
     /**
      * Sets the "markers" for the beginning and of a of week, in the
      * built Calendar_Day children
+     *
      * @return void
      * @access private
      */
     function setWeekMarkers()
     {
-        $dIW  = $this->cE->getDaysInWeek(
+        $dIW = $this->cE->getDaysInWeek(
             $this->thisYear(),
             $this->thisMonth(),
             $this->thisDay()
http://cvs.php.net/viewvc.cgi/pear/Calendar/Month/Weeks.php?r1=1.5&r2=1.6&diff_format=u
Index: pear/Calendar/Month/Weeks.php
diff -u pear/Calendar/Month/Weeks.php:1.5 pear/Calendar/Month/Weeks.php:1.6
--- pear/Calendar/Month/Weeks.php:1.5	Mon Oct 22 12:51:16 2007
+++ pear/Calendar/Month/Weeks.php	Wed Oct 31 18:27:26 2007
@@ -27,14 +27,14 @@
  * (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>
- * @author     Lorenzo Alberton <l dot alberton at quipo dot it>
- * @copyright  2003-2007 Harry Fuecks, Lorenzo Alberton
- * @license    http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
- * @version    CVS: $Id: Weeks.php,v 1.5 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>
+ * @author    Lorenzo Alberton <l.alberton@quipo.it>
+ * @copyright 2003-2007 Harry Fuecks, Lorenzo Alberton
+ * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
+ * @version   CVS: $Id: Weeks.php,v 1.6 2007/10/31 18:27:26 quipo Exp $
+ * @link      http://pear.php.net/package/Calendar
  */
 
 /**
@@ -66,14 +66,14 @@
  * }
  * </code>
  *
- * @category   Date and Time
- * @package    Calendar
- * @author     Harry Fuecks <hfuecks@phppatterns.com>
- * @author     Lorenzo Alberton <l dot alberton at quipo dot it>
- * @copyright  2003-2007 Harry Fuecks, Lorenzo Alberton
- * @license    http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
- * @link       http://pear.php.net/package/Calendar
- * @access     public
+ * @category  Date and Time
+ * @package   Calendar
+ * @author    Harry Fuecks <hfuecks@phppatterns.com>
+ * @author    Lorenzo Alberton <l.alberton@quipo.it>
+ * @copyright 2003-2007 Harry Fuecks, Lorenzo Alberton
+ * @license   http://www.debian.org/misc/bsd.license  BSD License (3 Clause)
+ * @link      http://pear.php.net/package/Calendar
+ * @access    public
  */
 class Calendar_Month_Weeks extends Calendar_Month
 {
@@ -93,9 +93,11 @@
 
     /**
      * Constructs Calendar_Month_Weeks
-     * @param int year e.g. 2003
-     * @param int month e.g. 5
-     * @param int (optional) first day of week (e.g. 0 for Sunday, 2 for Tuesday etc.)
+     *
+     * @param int $y        year e.g. 2003
+     * @param int $m        month e.g. 5
+     * @param int $firstDay (optional) first day of week (e.g. 0 for Sunday, 2 for Tuesday etc.)
+     *
      * @access public
      */
     function Calendar_Month_Weeks($y, $m, $firstDay=null)
@@ -106,11 +108,13 @@
     /**
      * Builds Calendar_Week objects for the Month. Note that Calendar_Week
      * builds Calendar_Day object in tabular form (with Calendar_Day->empty)
-     * @param array (optional) Calendar_Week objects representing selected dates
+     *
+     * @param array $sDates (optional) Calendar_Week objects representing selected dates
+     *
      * @return boolean
      * @access public
      */
-    function build($sDates=array())
+    function build($sDates = array())
     {
         require_once CALENDAR_ROOT.'Table/Helper.php';
         $this->tableHelper = & new Calendar_Table_Helper($this, $this->firstDay);
@@ -139,7 +143,9 @@
 
     /**
      * Called from build()
-     * @param array
+     *
+     * @param array $sDates
+     *
      * @return void
      * @access private
      */



-- 
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