[Pkg-owncloud-commits] [php-sabre-vobject] 70/341: !xml <geo>
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:35 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 c69a66277337d9df9ab9216959a69971cf040761
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Tue Nov 18 15:17:23 2014 +0100
!xml <geo>
---
lib/Parser/XML.php | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 5bb1a17..16b0fc4 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -99,6 +99,18 @@ class XML extends Parser {
switch($propertyName) {
+ case 'geo':
+ $propertyType = 'float';
+ $propertyValue['latitude'] = 0;
+ $propertyValue['longitude'] = 0;
+
+ foreach($xmlProperty['value'] as $xmlRequestChild) {
+
+ $propertyValue[static::getTagName($xmlRequestChild['name'])]
+ = $xmlRequestChild['value'];
+ }
+ break;
+
case 'request-status':
$propertyType = 'text';
$propertyValue = [];
--
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