summaryrefslogtreecommitdiff
path: root/lib/Kolab/CardDAV/ContactsBackend.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-03-12 11:13:27 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-03-13 09:18:42 (GMT)
commit3fe616421a8d7340b4dd29ce56dafec4733d4d3c (patch)
treece37ebf1c32e4a716b205d52b4867f590fdb5638 /lib/Kolab/CardDAV/ContactsBackend.php
parent12e71c361fce1e132d35d29d2001f69c34be5e3e (diff)
downloadiRony-3fe616421a8d7340b4dd29ce56dafec4733d4d3c.tar.gz
Implement the CardDAV Directory Gateway Extension for Apple clients (and SOGo connector).
This exposes an LDAP-based address book inside the principals address book collection. According to the spec [1], this should be used for querying only. Listing, however, can be enabled by setting 'searchonly' => false in config. CARDDAV:addressbook-query requests will be translated into LDAP filters and post-processed by SabreDAV internals. [1] http://tools.ietf.org/html/draft-daboo-carddav-directory-gateway-02
Diffstat (limited to 'lib/Kolab/CardDAV/ContactsBackend.php')
-rw-r--r--lib/Kolab/CardDAV/ContactsBackend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Kolab/CardDAV/ContactsBackend.php b/lib/Kolab/CardDAV/ContactsBackend.php
index f43edb5..5ce2be7 100644
--- a/lib/Kolab/CardDAV/ContactsBackend.php
+++ b/lib/Kolab/CardDAV/ContactsBackend.php
@@ -313,7 +313,7 @@ class ContactsBackend extends CardDAV\Backend\AbstractBackend
'id' => $contact['uid'],
'uri' => $contact['uid'] . '.vcf',
'lastmodified' => is_a($contact['changed'], 'DateTime') ? $contact['changed']->format('U') : null,
- 'carddata' => $this->_to_vcard($contact),
+ 'carddata' => $this->to_vcard($contact),
'etag' => self::_get_etag($contact),
);
}
@@ -613,7 +613,7 @@ class ContactsBackend extends CardDAV\Backend\AbstractBackend
* @param array Hash array with contact properties from libkolab
* @return string VCARD string containing the contact data
*/
- private function _to_vcard($contact)
+ public function to_vcard($contact)
{
$vc = VObject\Component::create('VCARD');
$vc->version = '3.0';