[Pkg-owncloud-commits] [php-sabre-vobject] 84/341: !xml Implement the Parameter::xmlSerialize() method.

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

    !xml Implement the Parameter::xmlSerialize() method.
---
 lib/Parameter.php | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/lib/Parameter.php b/lib/Parameter.php
index b4ef8df..cde2ec4 100644
--- a/lib/Parameter.php
+++ b/lib/Parameter.php
@@ -346,6 +346,18 @@ class Parameter extends Node {
     }
 
     /**
+     * This method returns an array, with the representation as it should be
+     * encoded in XML. This is used to create xCard or xCal documents.
+     *
+     * @return array
+     */
+    function xmlSerialize() {
+
+        return $this->value;
+
+    }
+
+    /**
      * Called when this object is being cast to a string
      *
      * @return string

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