Property | Type | Description | |
---|---|---|---|
$_capabilities | array | What can this backend do? | |
$_connected | boolean | Indicates if the driver has been connected to a specific addressbook or not. | |
$_contacts_cache | array | The cached contacts. | |
$_data | Horde_Kolab_Storage_Data | The current addressbook. | |
$_kolab | Horde_Kolab_Storage | The Kolab_Storage backend. | |
$_listData | Horde_Kolab_Storage_Data | The current addressbook, serving groups. | |
$_objectOptions | array | Any additional options passed to Turba_Object constructors. | |
$_share | Horde_Share_Object | The current addressbook represented as share. |
Method | Description | |
---|---|---|
__construct ( $name = '', $params = [] ) | Attempts to open a Kolab Groupware folder. | |
checkDefaultShare ( Horde_Share_Object $share, array $srcconfig ) : boolean | Check if the passed in share is the default share for this source. | |
connect ( ) | Connect to the Kolab backend. | |
createShare ( string $share_name, array $params ) : Horde_Share | Creates a new Horde_Share for this source type. | |
setDefaultShare ( string $share ) | Runs any actions after setting a new default notepad. | |
synchronize ( mixed $token = false ) | Synchronize with the Kolab backend. | |
toDriverKeys ( array $hash ) : array | Translates the keys of the first hash from the generalized Turba attributes to the driver-specific fields. The translation is based on the contents of $this->map. | |
toTurbaKeys ( array $entry ) : array | Translates a hash from being keyed on driver-specific fields to being keyed on the generalized Turba attributes. The translation is based on the contents of $this->map. |
Method | Description | |
---|---|---|
_add ( array $attributes, array $blob_fields = [], array $date_fields = [] ) | Adds the specified contact to the addressbook. | |
_canAdd ( ) | ||
_convertMembers ( &$attributes ) | TODO | |
_createData ( string $type ) : Horde_Kolab_Storage_Data | Returns a new Kolab data handler for the current address book. | |
_delete ( $object_key, $object_id ) | Removes the specified object from the Kolab message store. | |
_deleteAll ( string $sourceName = null ) : array | Deletes all contacts from a specific address book. | |
_doSearch ( array $criteria, $glue ) : array | Applies the filter criteria to a list of entries | |
_generateUid ( ) : string | Create an object key for a new object. | |
_getAND ( array $ids ) : array | Returns only those names that are duplicated in $ids | |
_getData ( ) : Horde_Kolab_Storage_Data | Returns the Kolab data handler for contacts in the current address book. | |
_getListData ( ) : Horde_Kolab_Storage_Data | Returns the Kolab data handler for distribution lists in the current address book. | |
_makeKey ( array $attributes ) : string | Create an object key for a new object. | |
_makeUid ( ) : string | Creates an object UID for a new object. | |
_read ( string $key, mixed $ids, string $owner, array $fields, array $blobFields = [], array $dateFields = [] ) : array | Reads the given data from the address book and returns the results. | |
_removeDuplicated ( array $ids ) : array | Returns an array with all duplicate names removed. | |
_save ( Turba_Object $object ) : string | Saves the specified object in the SQL database. | |
_search ( array $criteria, array $fields, array $blobFields = [], $count_only = false ) : array | Searches the address book with the given criteria and returns a filtered list of results. If the criteria parameter is an empty array, all records will be returned. | |
_selectEntries ( $test ) : array | Applies one filter criterium to a list of entries | |
_store ( $attributes, $object_id = null ) : string | Stores an object in the Kolab message store. |
public __construct ( $name = '', $params = [] ) |
protected _createData ( string $type ) : Horde_Kolab_Storage_Data | ||
$type | string | An object type, either 'contact' or 'distribution-list'. |
return | Horde_Kolab_Storage_Data | A data handler. |
protected _delete ( $object_key, $object_id ) |
protected _deleteAll ( string $sourceName = null ) : array | ||
$sourceName | string | The source to remove all contacts from. |
return | array | An array of UIDs |
protected _generateUid ( ) : string | ||
return | string | A unique ID for the new object. |
protected _getData ( ) : Horde_Kolab_Storage_Data | ||
return | Horde_Kolab_Storage_Data | The data handler. |
protected _getListData ( ) : Horde_Kolab_Storage_Data | ||
return | Horde_Kolab_Storage_Data | The data handler. |
protected _read ( string $key, mixed $ids, string $owner, array $fields, array $blobFields = [], array $dateFields = [] ) : array | ||
$key | string | The primary key field to use. |
$ids | mixed | The ids of the contacts to load. |
$owner | string | Only return contacts owned by this user. |
$fields | array | List of fields to return. |
$blobFields | array | Array of fields containing binary data. |
$dateFields | array | Array of fields containing date data. @since 4.2.0 |
return | array | Hash containing the search results. |
protected _removeDuplicated ( array $ids ) : array | ||
$ids | array | Nested array of arrays containing names. |
return | array | Array containg the 'OR' of all arrays in $ids. |
protected _search ( array $criteria, array $fields, array $blobFields = [], $count_only = false ) : array | ||
$criteria | array | Array containing the search criteria. |
$fields | array | List of fields to return. |
$blobFields | array | Array of fields containing binary data. |
return | array | Hash containing the search results. |
protected _selectEntries ( $test ) : array | ||
$test | Test criterium | |
return | array | Array containing the ids of the selected entries |
public synchronize ( mixed $token = false ) | ||
$token | mixed | A value indicating the last synchronization point, if available. |
public toDriverKeys ( array $hash ) : array | ||
$hash | array | Hash using Turba keys. |
return | array | Translated version of $hash. |
public toTurbaKeys ( array $entry ) : array | ||
$entry | array | A hash using driver-specific keys. |
return | array | Translated version of $entry. |
protected array $_capabilities | ||
return | array |
protected bool $_connected | ||
return | boolean |
protected array $_contacts_cache | ||
return | array |
protected Horde_Kolab_Storage_Data $_data | ||
return | Horde_Kolab_Storage_Data |
protected Horde_Kolab_Storage $_kolab | ||
return | Horde_Kolab_Storage |
protected Horde_Kolab_Storage_Data $_listData | ||
return | Horde_Kolab_Storage_Data |
protected array $_objectOptions | ||
return | array |