[Pkg-owncloud-commits] [php-sabre-vobject] 61/341: !xml <integer>
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 86aaf0bb1eb8178174fb84577b2fb16cbd2c941f
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Tue Nov 18 11:36:01 2014 +0100
!xml <integer>
---
lib/Property/Integer.php | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/lib/Property/Integer.php b/lib/Property/Integer.php
index 234de7a..bfea288 100644
--- a/lib/Property/Integer.php
+++ b/lib/Property/Integer.php
@@ -69,4 +69,19 @@ class Integer extends Property {
return [(int)$this->getValue()];
}
+
+ /**
+ * 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('intval', $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