[Pkg-owncloud-commits] [php-sabre-vobject] 62/341: !xml <float>

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

    !xml <float>
---
 lib/Property/Float.php | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/lib/Property/Float.php b/lib/Property/Float.php
index a203764..1aae79e 100644
--- a/lib/Property/Float.php
+++ b/lib/Property/Float.php
@@ -93,4 +93,20 @@ class Float extends Property {
         return $val;
 
     }
+
+    /**
+     * Sets the XML value, as it would appear in a xCard or xCal object.
+     *
+     * The value must always be an array.
+     *
+     * @param array $value
+     * @return void
+     */
+    function setXmlValue(array $value) {
+
+        $value = array_map('floatval', $value);
+        parent::setXmlValue($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