allow storing and retrieval of following CalDAV properties: default-alarm-vevent-date, default-alarm-vevent-datetime

This commit is contained in:
Ralf Becker 2012-09-26 10:01:45 +00:00
parent 754cbe37d0
commit eaebb0d27a

View File

@ -609,7 +609,8 @@ class groupdav extends HTTP_WebDAV_Server
foreach((array)$GLOBALS['egw_info']['user']['preferences']['groupdav'] as $name => $value) foreach((array)$GLOBALS['egw_info']['user']['preferences']['groupdav'] as $name => $value)
{ {
list($prop,$prop4path,$ns) = explode(':', $name, 3); list($prop,$prop4path,$ns) = explode(':', $name, 3);
if ($prop4path == $path && !in_array($ns,self::$ns_needs_explicit_named_props)) if ($prop4path == $path && (!in_array($ns,self::$ns_needs_explicit_named_props) ||
isset(self::$proppatch_props[$prop]) && self::$proppatch_props[$prop] === $ns))
{ {
$props[] = self::mkprop($ns, $prop, $value); $props[] = self::mkprop($ns, $prop, $value);
//error_log(__METHOD__."() arbitrary $ns:$prop=".array2string($value)); //error_log(__METHOD__."() arbitrary $ns:$prop=".array2string($value));
@ -946,6 +947,7 @@ class groupdav extends HTTP_WebDAV_Server
//'DAV:owner' => 'Owner', //'DAV:owner' => 'Owner',
//'DAV:current-user-privilege-set' => 'current-user-privilege-set', //'DAV:current-user-privilege-set' => 'current-user-privilege-set',
//'DAV:getcontentlength' => 'Size', //'DAV:getcontentlength' => 'Size',
//'DAV:sync-token' => 'sync-token',
); );
$n = 0; $n = 0;
foreach($files['files'] as $file) foreach($files['files'] as $file)
@ -1156,6 +1158,8 @@ class groupdav extends HTTP_WebDAV_Server
'addressbook-description' => self::CARDDAV, 'addressbook-description' => self::CARDDAV,
'calendar-color' => self::ICAL, // only mentioned that old prefs still work 'calendar-color' => self::ICAL, // only mentioned that old prefs still work
'calendar-order' => self::ICAL, 'calendar-order' => self::ICAL,
'default-alarm-vevent-date' => self::CALDAV,
'default-alarm-vevent-datetime' => self::CALDAV,
); );
/** /**