19 $sharees[0]->href =
'mailto:foo@example.org';
20 $sharees[0]->properties[
'{DAV:}displayname'] =
'Foo Bar';
24 $sharees[1]->href =
'mailto:bar@example.org';
28 $sharees[2]->href =
'mailto:baz@example.org';
32 $sharees[3]->href =
'mailto:zim@example.org';
36 $invite =
new Invite($sharees);
38 $xml = $this->
write([
'{DAV:}root' => $invite]);
42 <d:root xmlns:d=
"DAV:">
44 <d:href>mailto:foo@example.org</d:href>
46 <d:displayname>Foo Bar</d:displayname>
48 <d:share-access><d:shared-owner /></d:share-access>
52 <d:href>mailto:bar@example.org</d:href>
54 <d:share-access><d:read /></d:share-access>
58 <d:href>mailto:baz@example.org</d:href>
60 <d:share-access><d:read-
write /></d:share-access>
61 <d:invite-noresponse/>
64 <d:href>mailto:zim@example.org</d:href>
66 <d:share-access><d:read-
write /></d:share-access>
72 $this->assertXmlStringEqualsXmlString($expected,
$xml);
This class represents the {DAV:}sharee element.
This class represents the {DAV:}invite property.