10 '{urn:ietf:params:xml:ns:carddav}addressbook-query' =>
'Sabre\\CardDAV\\Xml\\Request\AddressBookQueryReport',
17 <c:addressbook-query xmlns:d=
"DAV:" xmlns:c=
"urn:ietf:params:xml:ns:carddav">
22 <c:prop-filter name=
"uid" />
24 </c:addressbook-query>
29 $addressBookQueryReport->properties = [
32 $addressBookQueryReport->test =
'anyof';
33 $addressBookQueryReport->filters = [
37 'is-not-defined' =>
false,
38 'param-filters' => [],
44 $addressBookQueryReport,
54 <c:addressbook-query xmlns:d=
"DAV:" xmlns:c=
"urn:ietf:params:xml:ns:carddav">
58 <c:filter
test=
"allof">
59 <c:prop-filter name=
"uid" />
61 </c:addressbook-query>
66 $addressBookQueryReport->properties = [
69 $addressBookQueryReport->test =
'allof';
70 $addressBookQueryReport->filters = [
74 'is-not-defined' =>
false,
75 'param-filters' => [],
81 $addressBookQueryReport,
94 <c:addressbook-query xmlns:d=
"DAV:" xmlns:c=
"urn:ietf:params:xml:ns:carddav">
99 <c:prop-filter name=
"uid" />
101 </c:addressbook-query>
114 <?xml version=
"1.0"?>
115 <c:addressbook-query xmlns:d=
"DAV:" xmlns:c=
"urn:ietf:params:xml:ns:carddav">
119 </c:addressbook-query>
124 $addressBookQueryReport->properties = [
127 $addressBookQueryReport->test =
'anyof';
128 $addressBookQueryReport->filters = [];
131 $addressBookQueryReport,
140 <?xml version=
"1.0"?>
141 <c:addressbook-query xmlns:d=
"DAV:" xmlns:c=
"urn:ietf:params:xml:ns:carddav">
144 <c:address-
data content-type=
"application/vcard+json" version=
"4.0" />
147 <c:prop-filter name=
"uid">
150 <c:prop-filter name=
"x-foo" test=
"allof">
151 <c:param-filter name=
"x-param1" />
152 <c:param-filter name=
"x-param2">
155 <c:param-filter name=
"x-param3">
156 <c:text-match match-type=
"contains">Hello!</c:text-match>
159 <c:prop-filter name=
"x-prop2">
160 <c:text-match match-type=
"starts-with" negate-condition=
"yes">No</c:text-match>
163 <c:limit><c:nresults>10</c:nresults></c:limit>
164 </c:addressbook-query>
169 $addressBookQueryReport->properties = [
171 '{urn:ietf:params:xml:ns:carddav}address-data',
173 $addressBookQueryReport->test =
'anyof';
174 $addressBookQueryReport->filters = [
178 'is-not-defined' =>
true,
179 'param-filters' => [],
180 'text-matches' => [],
185 'is-not-defined' =>
false,
188 'name' =>
'x-param1',
189 'is-not-defined' =>
false,
190 'text-match' => null,
193 'name' =>
'x-param2',
194 'is-not-defined' =>
true,
195 'text-match' => null,
198 'name' =>
'x-param3',
199 'is-not-defined' =>
false,
201 'negate-condition' =>
false,
203 'match-type' =>
'contains',
204 'collation' =>
'i;unicode-casemap',
208 'text-matches' => [],
213 'is-not-defined' =>
false,
214 'param-filters' => [],
217 'negate-condition' =>
true,
219 'match-type' =>
'starts-with',
220 'collation' =>
'i;unicode-casemap',
226 $addressBookQueryReport->version =
'4.0';
227 $addressBookQueryReport->contentType =
'application/vcard+json';
228 $addressBookQueryReport->limit = 10;
231 $addressBookQueryReport,
243 <?xml version=
"1.0"?>
244 <c:addressbook-query xmlns:d=
"DAV:" xmlns:c=
"urn:ietf:params:xml:ns:carddav">
249 <c:prop-filter name=
"x-foo" test=
"allof">
250 <c:param-filter name=
"x-param3">
251 <c:text-match match-type=
"bad">Hello!</c:text-match>
255 </c:addressbook-query>
267 <?xml version=
"1.0"?>
268 <c:addressbook-query xmlns:d=
"DAV:" xmlns:c=
"urn:ietf:params:xml:ns:carddav">
273 <c:prop-filter name=
"x-prop2">
274 <c:text-match match-type=
"bad" negate-condition=
"yes">No</c:text-match>
277 </c:addressbook-query>
289 <?xml version=
"1.0"?>
290 <c:addressbook-query xmlns:d=
"DAV:" xmlns:c=
"urn:ietf:params:xml:ns:carddav">
298 </c:addressbook-query>
307 <?xml version=
"1.0"?>
308 <c:addressbook-query xmlns:d=
"DAV:" xmlns:c=
"urn:ietf:params:xml:ns:carddav">
312 <c:prop name=
"VERSION"/>
314 <c:prop name=
"NICKNAME"/>
315 <c:prop name=
"EMAIL"/>
320 </c:addressbook-query>
325 $addressBookQueryReport->properties = [
327 '{urn:ietf:params:xml:ns:carddav}address-data' 329 $addressBookQueryReport->filters = [];
330 $addressBookQueryReport->test =
'anyof';
331 $addressBookQueryReport->contentType =
'text/vcard';
332 $addressBookQueryReport->version =
'3.0';
333 $addressBookQueryReport->addressDataProperties = [
343 $addressBookQueryReport,
AddressBookQueryReport request parser.
testDeserializeNoFilter()
We should error on this, but KDE does this, so we chose to support it.
testDeserializeBadMatchType()
parse($xml, array $elementMap=[])
testDeserializeDoubleFilter()
testDeserializeAddressbookElements()
testDeserializeBadMatchType2()