[Pkg-owncloud-commits] [php-sabre-vobject] 46/106: Added SameOrganizerForAllComponentsException.

David Prévot taffit at moszumanska.debian.org
Fri Aug 22 15:11:00 UTC 2014


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

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

commit e5f7fff29e3904068910429d01d92883f1fa2ea2
Author: Evert Pot <me at evertpot.com>
Date:   Fri Aug 1 17:51:12 2014 -0400

    Added SameOrganizerForAllComponentsException.
---
 lib/Sabre/VObject/ITip/Broker.php                      |  2 +-
 .../ITip/SameOrganizerForAllComponentsException.php    | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/lib/Sabre/VObject/ITip/Broker.php b/lib/Sabre/VObject/ITip/Broker.php
index 7605d6e..10b013b 100644
--- a/lib/Sabre/VObject/ITip/Broker.php
+++ b/lib/Sabre/VObject/ITip/Broker.php
@@ -657,7 +657,7 @@ class Broker {
                     $organizerName = isset($vevent->ORGANIZER['CN'])?$vevent->ORGANIZER['CN']:null;
                 } else {
                     if ($organizer !== $vevent->ORGANIZER->getValue()) {
-                        throw new ITipException('Every instance of the event must have the same organizer.');
+                        throw new SameOrganizerForAllComponentsException('Every instance of the event must have the same organizer.');
                     }
                 }
             }
diff --git a/lib/Sabre/VObject/ITip/SameOrganizerForAllComponentsException.php b/lib/Sabre/VObject/ITip/SameOrganizerForAllComponentsException.php
new file mode 100644
index 0000000..1b20188
--- /dev/null
+++ b/lib/Sabre/VObject/ITip/SameOrganizerForAllComponentsException.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Sabre\VObject\ITip;
+
+/**
+ * SameOrganizerForAllComponentsException
+ *
+ * This exception is emitted when an event is encountered with more than one
+ * component (e.g.: exceptions), but the organizer is not identical in every
+ * component.
+ *
+ * @copyright Copyright (C) 2007-2014 fruux GmbH. All rights reserved.
+ * @author Evert Pot (http://evertpot.com/)
+ * @license http://sabre.io/license/ Modified BSD License
+ */
+class SameOrganizerForAllComponentsException extends ITipException {
+
+}

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



More information about the Pkg-owncloud-commits mailing list