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

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 9d9bcfeee120d124ca96cca5a7fb17a8741ebf5f
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Tue Nov 18 11:25:55 2014 +0100

    !xml <boolean>
---
 lib/Property/Boolean.php | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/lib/Property/Boolean.php b/lib/Property/Boolean.php
index 262468c..dcc60b5 100644
--- a/lib/Property/Boolean.php
+++ b/lib/Property/Boolean.php
@@ -60,4 +60,24 @@ class Boolean extends Property {
 
     }
 
+    /**
+     * 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(
+            function($value) {
+                return 'true' === $value;
+            },
+            $value
+        );
+        $this->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