[Pkg-owncloud-commits] [php-sabredav] 63/148: RecurrenceIterator -> Recur\EventIterator

David Prévot taffit at moszumanska.debian.org
Wed Apr 15 01:37:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit e6ac189857c87064f6535e505f077c9aba215f5d
Author: Jeroen Massar <jeroen at massar.ch>
Date:   Wed Mar 11 14:38:07 2015 +0100

    RecurrenceIterator -> Recur\EventIterator
---
 bin/migrateto17.php                   | 2 +-
 lib/CalDAV/Backend/PDO.php            | 2 +-
 lib/CalDAV/CalendarQueryValidator.php | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/migrateto17.php b/bin/migrateto17.php
index 66a9ee5..3ccf0a3 100755
--- a/bin/migrateto17.php
+++ b/bin/migrateto17.php
@@ -256,7 +256,7 @@ function getDenormalizedData($calendarData) {
                 $lastOccurence = $firstOccurence;
             }
         } else {
-            $it = new \Sabre\VObject\RecurrenceIterator($vObject, (string)$component->UID);
+            $it = new \Sabre\VObject\Recur\EventIterator($vObject, (string)$component->UID);
             $maxDate = new DateTime(\Sabre\CalDAV\Backend\PDO::MAX_DATE);
             if ($it->isInfinite()) {
                 $lastOccurence = $maxDate->getTimeStamp();
diff --git a/lib/CalDAV/Backend/PDO.php b/lib/CalDAV/Backend/PDO.php
index 1fde1ab..9e1764c 100644
--- a/lib/CalDAV/Backend/PDO.php
+++ b/lib/CalDAV/Backend/PDO.php
@@ -569,7 +569,7 @@ class PDO extends AbstractBackend implements SyncSupport, SubscriptionSupport, S
                     $lastOccurence = $firstOccurence;
                 }
             } else {
-                $it = new VObject\RecurrenceIterator($vObject, (string)$component->UID);
+                $it = new VObject\Recur\EventIterator($vObject, (string)$component->UID);
                 $maxDate = new \DateTime(self::MAX_DATE);
                 if ($it->isInfinite()) {
                     $lastOccurence = $maxDate->getTimeStamp();
diff --git a/lib/CalDAV/CalendarQueryValidator.php b/lib/CalDAV/CalendarQueryValidator.php
index fcb0f63..3b56fcc 100644
--- a/lib/CalDAV/CalendarQueryValidator.php
+++ b/lib/CalDAV/CalendarQueryValidator.php
@@ -301,7 +301,7 @@ class CalendarQueryValidator {
                 if ($component->parent->name === 'VEVENT' && $component->parent->RRULE) {
 
                     // Fire up the iterator!
-                    $it = new VObject\RecurrenceIterator($component->parent->parent, (string)$component->parent->UID);
+                    $it = new VObject\Recur\EventIterator($component->parent->parent, (string)$component->parent->UID);
                     while($it->valid()) {
                         $expandedEvent = $it->getEventObject();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list