[Pkg-owncloud-commits] [php-sabre-vobject] 71/341: !xml <categories, resources, freebusy, exdate & rdate>.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:35 UTC 2015
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 02f57ca16657d8075511e3f992bb035f6d9ee452
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Tue Nov 18 15:23:04 2014 +0100
!xml <categories, resources, freebusy, exdate & rdate>.
---
lib/Parser/XML.php | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 16b0fc4..a797bb0 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -80,8 +80,9 @@ class XML extends Parser {
foreach($xmlProperties as $xmlProperty) {
$propertyName = static::getTagName($xmlProperty['name']);
- $propertyType = 'text';
+ $propertyValue = [];
$propertyParameters = [];
+ $propertyType = 'text';
foreach($xmlProperty['value'] as $i => $xmlPropertyChild) {
@@ -113,7 +114,6 @@ class XML extends Parser {
case 'request-status':
$propertyType = 'text';
- $propertyValue = [];
foreach($xmlProperty['value'] as $xmlRequestChild) {
@@ -122,6 +122,18 @@ class XML extends Parser {
}
break;
+ case 'categories':
+ case 'resources':
+ case 'freebusy':
+ case 'exdate':
+ case 'rdate':
+ foreach($xmlProperty['value'] as $specialChild) {
+
+ $propertyValue[static::getTagName($specialChild['name'])]
+ = $specialChild['value'];
+ }
+ break;
+
default:
$propertyType = static::getTagName($xmlProperty['value'][0]['name']);
$propertyValue = [$xmlProperty['value'][0]['value']];
--
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