Files
service_dav/lib/DavProperties.php
T
2026-07-14 18:24:31 -04:00

47 lines
1.4 KiB
PHP

<?php
declare(strict_types=1);
namespace KTXM\ServiceDav;
/**
* Well-known DAV / CalDAV / CardDAV XML property names used across backends.
*/
final class DavProperties
{
// Generic DAV object fields
public const ID = 'id';
public const URI = 'uri';
public const PRINCIPAL_URI = 'principaluri';
public const LAST_MODIFIED = 'lastmodified';
public const ETAG = 'etag';
public const SIZE = 'size';
// CardDAV object data
public const CARD_DATA = 'carddata';
// CalDAV object data
public const CALENDAR_DATA = 'calendardata';
public const COMPONENT = 'component';
// DAV:
public const DISPLAYNAME = '{DAV:}displayname';
public const SYNC_TOKEN = '{DAV:}sync-token';
// SabreDAV
public const SABRE_EMAIL = '{http://sabredav.org/ns}email-address';
// CalDAV (RFC 4791)
public const CALDAV_DESCRIPTION = '{urn:ietf:params:xml:ns:caldav}calendar-description';
public const CALDAV_COMPONENTS = '{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set';
// CardDAV (RFC 6352)
public const CARDDAV_DESCRIPTION = '{urn:ietf:params:xml:ns:carddav}addressbook-description';
// Apple Calendar Server / iCal extensions
public const APPLE_COLOR = '{http://apple.com/ns/ical/}calendar-color';
public const CS_CTAG = '{http://calendarserver.org/ns/}getctag';
private function __construct() {}
}