[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] calendar/inc class.boicalendar.inc.php, 1.16.2.4.2.8
From: |
skwashd |
Subject: |
[Phpgroupware-cvs] calendar/inc class.boicalendar.inc.php, 1.16.2.4.2.8 |
Date: |
Wed, 7 Dec 2005 15:05:00 +0100 |
Update of calendar/inc
Modified Files:
Branch: Version-0_9_16-branch
class.boicalendar.inc.php lines: +16 -13
Log Message:
fix bugs #13206+7
====================================================
Index: calendar/inc/class.boicalendar.inc.php
diff -u calendar/inc/class.boicalendar.inc.php:1.16.2.4.2.7
calendar/inc/class.boicalendar.inc.php:1.16.2.4.2.8
--- calendar/inc/class.boicalendar.inc.php:1.16.2.4.2.7 Fri Oct 14 22:59:22 2005
+++ calendar/inc/class.boicalendar.inc.php Wed Dec 7 14:05:26 2005
@@ -806,6 +806,15 @@
'contact' => True
)
),
+ 'freq' => Array( //this is here to be RFC 2445
compliant - skwashd Dec-2005
+ 'type' => 'function',
+ 'function' => 'switch_freq',
+ 'quoted' => False,
+ 'to_text' => False,
+ 'properties' => Array(
+ 'rrule' => True
+ )
+ ),
'byday' => Array(
'type' => 'text',
'quoted' => False,
@@ -993,15 +1002,6 @@
'attach' => True
)
),
- 'freq' => Array(
- 'type' => 'function',
- 'function' => 'switch_freq',
- 'quoted' => False,
- 'to_text' => False,
- 'properties' => Array(
- 'rrule' => True
- )
- ),
'interval' => Array(
'type' => 'integer',
'quoted' => False,
@@ -1622,6 +1622,7 @@
{
$value = $this->to_text($value);
}
+
switch($type)
{
case 'dir':
@@ -1633,6 +1634,9 @@
$this->debug($key.'
Function Param : '.$value);
$str .=
$quote.$this->$function($value).$quote;
break;
+ case 'integer':
+ $str .= ';' .
strtoupper($key) . "=$value";
+ break;
case 'text':
case 'string':
$str .=
';'.strtoupper($key).'='.$quote.$value.$quote;
@@ -3428,11 +3432,10 @@
}
$this->parse_value($ical_event,'rrule',$str,'vevent');
- $exceptions = $event['recur_exception'];
+ $exceptions =&
$event['recur_exception'];
if(is_array($exceptions))
{
- @reset($exceptions);
-
while(list($key,$except_datetime) = each($exceptions))
+ foreach ( $exceptions as $key
=> $except_datetime )
{
$ical_event['exdate'][]
= $this->switch_date(date('Ymd\THis\Z',$except_datetime));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] calendar/inc class.boicalendar.inc.php, 1.16.2.4.2.8,
skwashd <=