PHP Class Horde_Dav_Contacts_Backend, horde

Author: Jan Schneider ([email protected])
Inheritance: extends Sabre\CardDAV\Backend\AbstractBackend
Exibir arquivo Open project: horde/horde

Protected Properties

Property Type Description
$_registry Horde_Registry A registry object.

Public Methods

Method Description
__construct ( Horde_Registry $registry ) Constructor.
createAddressBook ( string $principalUri, string $url, array $properties ) : void Creates a new address book
createCard ( mixed $addressBookId, string $cardUri, string $cardData ) : string | null Creates a new card.
deleteAddressBook ( mixed $addressBookId ) : void Deletes an entire addressbook and all its contents
deleteCard ( mixed $addressBookId, string $cardUri ) : boolean Deletes a card
getAddressBooksForUser ( string $principalUri ) : array Returns the list of addressbooks for a specific user.
getCard ( mixed $addressBookId, string $cardUri ) : array Returns a specfic card.
getCards ( mixed $addressbookId ) : array Returns all cards for a specific addressbook id.
updateAddressBook ( string $addressBookId, Sabre\DAV\PropPatch $propPatch ) : void Updates properties for an address book.
updateCard ( mixed $addressBookId, string $cardUri, string $cardData ) : string | null Updates a card.

Protected Methods

Method Description
_contacts ( ) : string Returns the name of the application providing the 'contacts' interface.

Method Details

__construct() public method

Constructor.
public __construct ( Horde_Registry $registry )
$registry Horde_Registry A registry object.

_contacts() protected method

Returns the name of the application providing the 'contacts' interface.
protected _contacts ( ) : string
return string An application name.

createAddressBook() public method

Creates a new address book
public createAddressBook ( string $principalUri, string $url, array $properties ) : void
$principalUri string
$url string Just the 'basename' of the url.
$properties array
return void

createCard() public method

If you don't return an ETag, you can just return null.
public createCard ( mixed $addressBookId, string $cardUri, string $cardData ) : string | null
$addressBookId mixed
$cardUri string
$cardData string
return string | null

deleteAddressBook() public method

Deletes an entire addressbook and all its contents
public deleteAddressBook ( mixed $addressBookId ) : void
$addressBookId mixed
return void

deleteCard() public method

Deletes a card
public deleteCard ( mixed $addressBookId, string $cardUri ) : boolean
$addressBookId mixed
$cardUri string
return boolean

getAddressBooksForUser() public method

Returns the list of addressbooks for a specific user.
public getAddressBooksForUser ( string $principalUri ) : array
$principalUri string
return array

getCard() public method

Returns a specfic card.
public getCard ( mixed $addressBookId, string $cardUri ) : array
$addressBookId mixed
$cardUri string
return array

getCards() public method

Returns all cards for a specific addressbook id.
public getCards ( mixed $addressbookId ) : array
$addressbookId mixed
return array

updateAddressBook() public method

Updates properties for an address book.
public updateAddressBook ( string $addressBookId, Sabre\DAV\PropPatch $propPatch ) : void
$addressBookId string
$propPatch Sabre\DAV\PropPatch
return void

updateCard() public method

Updates a card.
public updateCard ( mixed $addressBookId, string $cardUri, string $cardData ) : string | null
$addressBookId mixed
$cardUri string
$cardData string
return string | null

Property Details

$_registry protected_oe property

A registry object.
protected Horde_Registry $_registry
return Horde_Registry