PHP Class Turba_Driver_Prefs, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (ASL). If you did did not receive this file, see http://www.horde.org/licenses/apache.
Author: Chuck Hagenbuch ([email protected])
Inheritance: extends Turba_Driver
Datei anzeigen Open project: horde/horde

Public Methods

Method Description
_save ( Turba_Object $object ) Saves the specified object in the preferences.

Protected Methods

Method Description
_add ( array $attributes, array $blob_fields = [], array $date_fields = [] ) Adds the specified contact to the addressbook.
_canAdd ( ) TODO
_delete ( string $object_key, string $object_id ) Deletes the specified object from the preferences.
_getAddressBook ( ) : TODO TODO
_read ( string $key, mixed $ids, string $owner, array $fields, array $blobFields = [], array $dateFields = [] ) Reads the given data from the preferences and returns the result's fields.
_search ( array $criteria, array $fields, array $blobFields = [], $count_only = false ) : array Returns all entries - searching isn't implemented here for now. The parameters are simply ignored.
_setAddressBook ( $addressbook ) : TODO TODO

Method Details

_add() protected method

Adds the specified contact to the addressbook.
protected _add ( array $attributes, array $blob_fields = [], array $date_fields = [] )
$attributes array The attribute values of the contact.
$blob_fields array Fields that represent binary data.
$date_fields array Fields that represent dates. @since 4.2.0

_canAdd() protected method

TODO
protected _canAdd ( )

_delete() protected method

Deletes the specified object from the preferences.
protected _delete ( string $object_key, string $object_id )
$object_key string TODO
$object_id string TODO

_getAddressBook() protected method

TODO
protected _getAddressBook ( ) : TODO
return TODO

_read() protected method

Reads the given data from the preferences and returns the result's fields.
protected _read ( string $key, mixed $ids, string $owner, array $fields, array $blobFields = [], array $dateFields = [] )
$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

_save() public method

Saves the specified object in the preferences.
public _save ( Turba_Object $object )
$object Turba_Object TODO

_setAddressBook() protected method

TODO
protected _setAddressBook ( $addressbook ) : TODO
$addressbook TODO
return TODO