[Pkg-owncloud-commits] [php-sabre-vobject] 52/341: !xml Support parameters.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:33 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 c1ad7bae0c153282ad9fb8c760a1a69f03df8d03
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Mon Nov 17 14:43:29 2014 +0100

    !xml Support parameters.
---
 lib/Parser/XML.php | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index e7e59a2..1225b24 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -58,7 +58,7 @@ class XML extends Parser {
 
         if($this->input['name'] === '{' . self::XCAL_NAMESPACE . '}icalendar') {
 
-            $this->root = new VCalendar(array(), false);
+            $this->root = new VCalendar([], false);
             $this->pointer = &$this->input['value'][0];
             $this->parseVcalendarComponents($this->root, $options);
         }
@@ -115,8 +115,15 @@ class XML extends Parser {
                             // Parameters.
                             if('parameters' === $xmlPropertyName) {
 
-                                // parameters
-                                // 3.5 of the RFC
+                                $xmlParameters = $xmlPropertyChildren['value'];
+
+                                foreach($xmlParameters as $xmlParameter) {
+
+                                    $property->add(
+                                        static::getTagName($xmlParameter['name']),
+                                        $xmlParameter['value'][0]['value']
+                                    );
+                                }
 
                                 continue;
                             }

-- 
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