ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\CardDAV\Backend\AbstractBackend Class Reference

CardDAV abstract Backend. More...

+ Inheritance diagram for Sabre\CardDAV\Backend\AbstractBackend:
+ Collaboration diagram for Sabre\CardDAV\Backend\AbstractBackend:

Public Member Functions

 getMultipleCards ($addressBookId, array $uris)
 Returns a list of cards. More...
 
- Public Member Functions inherited from Sabre\CardDAV\Backend\BackendInterface
 getAddressBooksForUser ($principalUri)
 Returns the list of addressbooks for a specific user. More...
 
 updateAddressBook ($addressBookId, \Sabre\DAV\PropPatch $propPatch)
 Updates properties for an address book. More...
 
 createAddressBook ($principalUri, $url, array $properties)
 Creates a new address book. More...
 
 deleteAddressBook ($addressBookId)
 Deletes an entire addressbook and all its contents. More...
 
 getCards ($addressbookId)
 Returns all cards for a specific addressbook id. More...
 
 getCard ($addressBookId, $cardUri)
 Returns a specfic card. More...
 
 createCard ($addressBookId, $cardUri, $cardData)
 Creates a new card. More...
 
 updateCard ($addressBookId, $cardUri, $cardData)
 Updates a card. More...
 
 deleteCard ($addressBookId, $cardUri)
 Deletes a card. More...
 

Detailed Description

CardDAV abstract Backend.

This class serves as a base-class for addressbook backends

This class doesn't do much, but it was added for consistency.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 16 of file AbstractBackend.php.

Member Function Documentation

◆ getMultipleCards()

Sabre\CardDAV\Backend\AbstractBackend::getMultipleCards (   $addressBookId,
array  $uris 
)

Returns a list of cards.

This method should work identical to getCard, but instead return all the cards in the list as an array.

If the backend supports this, it may allow for some speed-ups.

Parameters
mixed$addressBookId
array$uris
Returns
array

Implements Sabre\CardDAV\Backend\BackendInterface.

Definition at line 30 of file AbstractBackend.php.

References Sabre\CardDAV\Backend\BackendInterface\getCard().

30  {
31 
32  return array_map(function($uri) use ($addressBookId) {
33  return $this->getCard($addressBookId, $uri);
34  }, $uris);
35 
36  }
getCard($addressBookId, $cardUri)
Returns a specfic card.
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: