@@ -104,7 +104,7 @@ |
||
| 104 | 104 | case 6: |
| 105 | 105 | case 9: |
| 106 | 106 | echo "</tr>\n<tr>\n"; |
| 107 | - break; |
|
| 107 | + break; |
|
| 108 | 108 | case 12: |
| 109 | 109 | echo "</tr>\n"; |
| 110 | 110 | break; |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | echo ( "<tr>\n" ); |
| 106 | 106 | |
| 107 | 107 | if ( $Day->isSelected() ) { |
| 108 | - echo ( "<td class=\"selected\">".$Day->thisDay()."</td>\n" ); |
|
| 108 | + echo ( "<td class=\"selected\">".$Day->thisDay()."</td>\n" ); |
|
| 109 | 109 | } else if ( $Day->isEmpty() ) { |
| 110 | 110 | echo ( "<td> </td>\n" ); |
| 111 | 111 | } else { |
@@ -15,14 +15,14 @@ discard block |
||
| 15 | 15 | // Decorate a Month with methods to improve formatting |
| 16 | 16 | class MonthDecorator extends Calendar_Decorator { |
| 17 | 17 | /** |
| 18 | - * @param Calendar_Month |
|
| 19 | - */ |
|
| 18 | + * @param Calendar_Month |
|
| 19 | + */ |
|
| 20 | 20 | function MonthDecorator(& $Month) { |
| 21 | 21 | parent::Calendar_Decorator($Month); |
| 22 | 22 | } |
| 23 | 23 | /** |
| 24 | - * Override the prevMonth method to format the output |
|
| 25 | - */ |
|
| 24 | + * Override the prevMonth method to format the output |
|
| 25 | + */ |
|
| 26 | 26 | function prevMonth() { |
| 27 | 27 | $prevStamp = parent::prevMonth(TRUE); |
| 28 | 28 | // Build the URL for the previous month |
@@ -30,16 +30,16 @@ discard block |
||
| 30 | 30 | '&m='.date('n',$prevStamp).'&d='.date('j',$prevStamp); |
| 31 | 31 | } |
| 32 | 32 | /** |
| 33 | - * Override the thisMonth method to format the output |
|
| 34 | - */ |
|
| 33 | + * Override the thisMonth method to format the output |
|
| 34 | + */ |
|
| 35 | 35 | function thisMonth() { |
| 36 | 36 | $thisStamp = parent::thisMonth(TRUE); |
| 37 | 37 | // A human readable string from this month |
| 38 | 38 | return date('F Y',$thisStamp); |
| 39 | 39 | } |
| 40 | 40 | /** |
| 41 | - * Override the nextMonth method to format the output |
|
| 42 | - */ |
|
| 41 | + * Override the nextMonth method to format the output |
|
| 42 | + */ |
|
| 43 | 43 | function nextMonth() { |
| 44 | 44 | $nextStamp = parent::nextMonth(TRUE); |
| 45 | 45 | // Build the URL for next month |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | echo "<tr>\n"; |
| 112 | 112 | |
| 113 | 113 | if ($day->isSelected()) { |
| 114 | - echo '<td class="selected">'.$day->thisDay().'</td>'."\n"; |
|
| 114 | + echo '<td class="selected">'.$day->thisDay().'</td>'."\n"; |
|
| 115 | 115 | } else if ($day->isEmpty()) { |
| 116 | 116 | echo '<td> </td>'."\n"; |
| 117 | 117 | } else { |
@@ -19,8 +19,8 @@ |
||
| 19 | 19 | { |
| 20 | 20 | $this->__dispatch_map['getMonth'] = |
| 21 | 21 | array('in' => array('year' => 'int', 'month'=>'int'), |
| 22 | - 'out' => array('month' => '{urn:PEAR_SOAP_Calendar}Month'), |
|
| 23 | - ); |
|
| 22 | + 'out' => array('month' => '{urn:PEAR_SOAP_Calendar}Month'), |
|
| 23 | + ); |
|
| 24 | 24 | $this->__typedef['Month'] = array ( |
| 25 | 25 | 'monthname' => 'string', |
| 26 | 26 | 'days' => '{urn:PEAR_SOAP_Calendar}MonthDays' |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | * |
| 394 | 394 | * @return int e.g. 4 or Unix timestamp |
| 395 | 395 | * @access public |
| 396 | - */ |
|
| 396 | + */ |
|
| 397 | 397 | function prevMonth($format = 'int') |
| 398 | 398 | { |
| 399 | 399 | return $this->calendar->prevMonth($format); |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | * |
| 433 | 433 | * @return int e.g. 4 or Unix timestamp |
| 434 | 434 | * @access public |
| 435 | - */ |
|
| 435 | + */ |
|
| 436 | 436 | function prevWeek($format = 'n_in_month') |
| 437 | 437 | { |
| 438 | 438 | if ( method_exists($this->calendar, 'prevWeek')) { |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | if (defined('CALENDAR_FIRST_DAY_OF_WEEK')) { |
| 492 | 492 | if (!is_null($firstDay) && ($firstDay != CALENDAR_FIRST_DAY_OF_WEEK)) { |
| 493 | 493 | $msg = 'CALENDAR_FIRST_DAY_OF_WEEK constant already defined.' |
| 494 | - .' The $firstDay parameter will be ignored.'; |
|
| 494 | + .' The $firstDay parameter will be ignored.'; |
|
| 495 | 495 | trigger_error($msg, E_USER_WARNING); |
| 496 | 496 | } |
| 497 | 497 | return CALENDAR_FIRST_DAY_OF_WEEK; |
@@ -714,8 +714,8 @@ discard block |
||
| 714 | 714 | } |
| 715 | 715 | |
| 716 | 716 | /** |
| 717 | - * Returns the value for the next minute |
|
| 718 | - * |
|
| 717 | + * Returns the value for the next minute |
|
| 718 | + * |
|
| 719 | 719 | * @param string $format return value format ['int'|'timestamp'|'object'|'array'] |
| 720 | 720 | * |
| 721 | 721 | * @return int e.g. 25 or timestamp |
@@ -748,8 +748,8 @@ discard block |
||
| 748 | 748 | /** |
| 749 | 749 | * Returns the value for this second |
| 750 | 750 | * |
| 751 | - * @param string $format return value format ['int'|'timestamp'|'object'|'array'] |
|
| 752 | - * |
|
| 751 | + * @param string $format return value format ['int'|'timestamp'|'object'|'array'] |
|
| 752 | + * |
|
| 753 | 753 | * @return int e.g. 44 or timestamp |
| 754 | 754 | * @access public |
| 755 | 755 | */ |
@@ -83,11 +83,11 @@ |
||
| 83 | 83 | function build($sDates = array()) |
| 84 | 84 | { |
| 85 | 85 | $mIH = $this->cE->getMinutesInHour($this->year, $this->month, $this->day, |
| 86 | - $this->hour); |
|
| 86 | + $this->hour); |
|
| 87 | 87 | for ($i=0; $i < $mIH; $i++) { |
| 88 | 88 | $this->children[$i] = |
| 89 | 89 | new Minute($this->year, $this->month, $this->day, |
| 90 | - $this->hour, $i); |
|
| 90 | + $this->hour, $i); |
|
| 91 | 91 | } |
| 92 | 92 | if (count($sDates) > 0) { |
| 93 | 93 | $this->setSelection($sDates); |