updated capabilities to draft 02

This commit is contained in:
Ralf Becker 2012-10-03 11:19:12 +00:00
parent e9fe6cd6e1
commit 5a890e36ab

View File

@ -391,27 +391,27 @@ class ischedule_server
* *
* <?xml version="1.0" encoding="utf-8" ?> * <?xml version="1.0" encoding="utf-8" ?>
* <query-result xmlns="urn:ietf:params:xml:ns:ischedule"> * <query-result xmlns="urn:ietf:params:xml:ns:ischedule">
* <capability-set> * <capabilities>
* <supported-version-set> * <versions>
* <version>1.0</version> * <version>1.0</version>
* </supported-version-set> * </versions>
* <supported-scheduling-message-set> * <scheduling-messages>
* <comp name="VEVENT"> * <component name="VEVENT">
* <method name="REQUEST"/> * <method name="REQUEST"/>
* <method name="ADD"/> * <method name="ADD"/>
* <method name="REPLY"/> * <method name="REPLY"/>
* <method name="CANCEL"/> * <method name="CANCEL"/>
* </comp> * </component>
* <comp name="VTODO"/> * <component name="VTODO"/>
* <comp name="VFREEBUSY"/> * <component name="VFREEBUSY"/>
* </supported-scheduling-message-set> * </scheduling-messages>
* <supported-calendar-data-type> * <calendar-data-types>
* <calendar-data-type content-type="text/calendar" version="2.0"/> * <calendar-data-type content-type="text/calendar" version="2.0"/>
* </supported-calendar-data-type> * </calendar-data-types>
* <supported-attachment-values> * <attachmens>
* <inline-attachment/> * <inline/>
* <external-attachment/> * <external/>
* </supported-attachment-values> * </attachments>
* <supported-recipient-uri-scheme-set> * <supported-recipient-uri-scheme-set>
* <scheme>mailto</scheme> * <scheme>mailto</scheme>
* </supported-recipient-uri-scheme-set> * </supported-recipient-uri-scheme-set>
@ -421,7 +421,7 @@ class ischedule_server
* <max-instances>150</max-instances> * <max-instances>150</max-instances>
* <max-recipients>250</max-recipients> * <max-recipients>250</max-recipients>
* <administrator>mailto:ischedule-admin@example.com</administrator> * <administrator>mailto:ischedule-admin@example.com</administrator>
* </capability-set> * </capabilities>
* </query-result> * </query-result>
*/ */
protected function get() protected function get()
@ -442,9 +442,9 @@ class ischedule_server
$xml->startElement('capability-set'); $xml->startElement('capability-set');
foreach(array( foreach(array(
'supported-version-set' => array('version' => array('1.0')), 'versions' => array('version' => array('1.0')),
'supported-scheduling-message-set' => array( 'scheduling-messages' => array(
'comp' => array('.name' => array( 'component' => array('.name' => array(
'VEVENT' => array('method' => array('REQUEST', 'ADD', 'REPLY', 'CANCEL')), 'VEVENT' => array('method' => array('REQUEST', 'ADD', 'REPLY', 'CANCEL')),
'VTODO' => '', 'VTODO' => '',
'VFREEBUSY' => '', 'VFREEBUSY' => '',
@ -462,27 +462,27 @@ class ischedule_server
$capabilities = '<?xml version="1.0" encoding="utf-8" ?> $capabilities = '<?xml version="1.0" encoding="utf-8" ?>
<query-result xmlns="urn:ietf:params:xml:ns:ischedule"> <query-result xmlns="urn:ietf:params:xml:ns:ischedule">
<capability-set> <capabilities>
<supported-version-set> <versions>
<version>1.0</version> <version>1.0</version>
</supported-version-set> </versions>
<supported-scheduling-message-set> <scheduling-messages>
<comp name="VEVENT"> <component name="VEVENT">
<method name="REQUEST"/> <method name="REQUEST"/>
<method name="ADD"/> <method name="ADD"/>
<method name="REPLY"/> <method name="REPLY"/>
<method name="CANCEL"/> <method name="CANCEL"/>
</comp> </component>
<comp name="VTODO"/> <component name="VTODO"/>
<comp name="VFREEBUSY"/> <component name="VFREEBUSY"/>
</supported-scheduling-message-set> </scheduling-messages>
<supported-calendar-data-type> <calendar-data-types>
<calendar-data-type content-type="text/calendar" version="2.0"/> <calendar-data-type content-type="text/calendar" version="2.0"/>
</supported-calendar-data-type> </calendar-data-types>
<supported-attachment-values> <attachments>
<inline-attachment/> <inline/>
<external-attachment/> <external/>
</supported-attachment-values> </attachments>
<supported-recipient-uri-scheme-set> <supported-recipient-uri-scheme-set>
<scheme>mailto</scheme> <scheme>mailto</scheme>
</supported-recipient-uri-scheme-set> </supported-recipient-uri-scheme-set>
@ -492,7 +492,7 @@ class ischedule_server
<max-instances>150</max-instances> <max-instances>150</max-instances>
<max-recipients>250</max-recipients> <max-recipients>250</max-recipients>
<administrator>mailto:ischedule-admin@example.com</administrator> <administrator>mailto:ischedule-admin@example.com</administrator>
</capability-set> </capabilities>
</query-result>'; </query-result>';
// returning capabilities // returning capabilities