Changeset View
Changeset View
Standalone View
Standalone View
plugins/kolab_addressbook/drivers/kolab/kolab_contacts_driver.php
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | public function folder_save() | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Helper method to build a hash array of address book properties | * Helper method to build a hash array of address book properties | ||||
*/ | */ | ||||
public function abook_prop($id, $abook) | public function abook_prop($id, $abook) | ||||
{ | { | ||||
if ($abook->virtual) { | if (property_exists($abook, 'virtual') && $abook->virtual) { | ||||
return [ | return [ | ||||
'id' => $id, | 'id' => $id, | ||||
'name' => $abook->get_name(), | 'name' => $abook->get_name(), | ||||
'listname' => $abook->get_foldername(), | 'listname' => $abook->get_foldername(), | ||||
'group' => $abook instanceof kolab_storage_folder_user ? 'user' : $abook->get_namespace(), | 'group' => $abook instanceof kolab_storage_folder_user ? 'user' : $abook->get_namespace(), | ||||
'readonly' => true, | 'readonly' => true, | ||||
'rights' => 'l', | 'rights' => 'l', | ||||
'kolab' => true, | 'kolab' => true, | ||||
Show All 22 Lines |