DavService
in package
Class DavService
Tags
Table of Contents
- $cardDavBackend : CardDavBackend
- $circlesRequest : DeprecatedCirclesRequest
- $cloudManager : ICloudIdManager
- $configService : ConfigService
- $fileSharingBroadcaster : FileSharingBroadcaster
- $membersRequest : DeprecatedMembersRequest
- $membersService : MembersService
- $migratedBooks : array<string|int, mixed>
- $miscService : MiscService
- $userId : string
- $userManager : IUserManager
- __construct() : mixed
- TimezoneService constructor.
- getDavCardFromMember() : DavCard
- getOwnerFromAddressBook() : string
- migration() : mixed
- onAppEnabled() : mixed
- onCreateCard() : mixed
- onDeleteCard() : mixed
- onUpdateCard() : mixed
- uuid() : string
- assignCirclesToCard() : mixed
- generateDavCard() : DavCard
- generateDavCardFromCard() : DavCard
- getCirclesFromBook() : array<string|int, DeprecatedCircle>
- getExistingCirclesFromBook() : array<string|int, DeprecatedCircle>
- getMemberType() : int
- isLocalMember() : string
- manageCircles() : mixed
- manageContact() : mixed
- manageDavCard() : mixed
- manageDeprecatedCircles() : mixed
- manageDeprecatedContacts() : mixed
- manageDeprecatedMembers() : mixed
- manageLocalContact() : mixed
- manageMember() : mixed
- manageNewCircles() : mixed
- manageRemoteContact() : mixed
- migrateBook() : mixed
Properties
$cardDavBackend
private
CardDavBackend
$cardDavBackend
$circlesRequest
private
DeprecatedCirclesRequest
$circlesRequest
$cloudManager
private
ICloudIdManager
$cloudManager
$configService
private
ConfigService
$configService
$fileSharingBroadcaster
private
FileSharingBroadcaster
$fileSharingBroadcaster
$membersRequest
private
DeprecatedMembersRequest
$membersRequest
$membersService
private
MembersService
$membersService
$migratedBooks
private
array<string|int, mixed>
$migratedBooks
= []
$miscService
private
MiscService
$miscService
$userId
private
string
$userId
$userManager
private
IUserManager
$userManager
Methods
__construct()
TimezoneService constructor.
public
__construct(string $userId, IUserManager $userManager, CardDavBackend $cardDavBackend, ICloudIdManager $cloudManager, FileSharingBroadcaster $fileSharingBroadcaster, MembersService $membersService, DeprecatedCirclesRequest $circlesRequest, DeprecatedMembersRequest $membersRequest, ConfigService $configService, MiscService $miscService) : mixed
Parameters
- $userId : string
- $userManager : IUserManager
- $cardDavBackend : CardDavBackend
- $cloudManager : ICloudIdManager
- $fileSharingBroadcaster : FileSharingBroadcaster
- $membersService : MembersService
- $circlesRequest : DeprecatedCirclesRequest
- $membersRequest : DeprecatedMembersRequest
- $configService : ConfigService
- $miscService : MiscService
Return values
mixed —getDavCardFromMember()
public
getDavCardFromMember(DeprecatedMember $contact) : DavCard
Parameters
- $contact : DeprecatedMember
Tags
Return values
DavCard —getOwnerFromAddressBook()
public
getOwnerFromAddressBook(int $bookId) : string
Parameters
- $bookId : int
Return values
string —migration()
public
migration() : mixed
Tags
Return values
mixed —onAppEnabled()
public
onAppEnabled(ManagerEvent $event) : mixed
Parameters
- $event : ManagerEvent
Return values
mixed —onCreateCard()
public
onCreateCard(GenericEvent $event) : mixed
Parameters
- $event : GenericEvent
Return values
mixed —onDeleteCard()
public
onDeleteCard(GenericEvent $event) : mixed
Parameters
- $event : GenericEvent
Return values
mixed —onUpdateCard()
public
onUpdateCard(GenericEvent $event) : mixed
Parameters
- $event : GenericEvent
Return values
mixed —uuid()
protected
uuid(int $length) : string
Parameters
- $length : int
Tags
Return values
string —assignCirclesToCard()
private
assignCirclesToCard(DavCard $davCard) : mixed
Parameters
- $davCard : DavCard
Return values
mixed —generateDavCard()
private
generateDavCard(GenericEvent $event[, bool $tiny = false ]) : DavCard
Parameters
- $event : GenericEvent
- $tiny : bool = false
Return values
DavCard —generateDavCardFromCard()
private
generateDavCardFromCard(int $bookId, array<string|int, mixed> $card) : DavCard
Parameters
- $bookId : int
- $card : array<string|int, mixed>
Return values
DavCard —getCirclesFromBook()
private
getCirclesFromBook(int $addressBookId) : array<string|int, DeprecatedCircle>
Parameters
- $addressBookId : int
Return values
array<string|int, DeprecatedCircle> —getExistingCirclesFromBook()
private
getExistingCirclesFromBook(int $bookId) : array<string|int, DeprecatedCircle>
Parameters
- $bookId : int
Return values
array<string|int, DeprecatedCircle> —getMemberType()
private
getMemberType(DavCard $davCard) : int
Parameters
- $davCard : DavCard
Return values
int —isLocalMember()
private
isLocalMember(string $address) : string
Parameters
- $address : string
Tags
Return values
string —manageCircles()
private
manageCircles(DavCard $davCard) : mixed
Parameters
- $davCard : DavCard
Return values
mixed —manageContact()
private
manageContact(DavCard $davCard) : mixed
Parameters
- $davCard : DavCard
Return values
mixed —manageDavCard()
private
manageDavCard(DavCard $davCard) : mixed
Parameters
- $davCard : DavCard
Return values
mixed —manageDeprecatedCircles()
private
manageDeprecatedCircles(int $bookId) : mixed
Parameters
- $bookId : int
Return values
mixed —manageDeprecatedContacts()
private
manageDeprecatedContacts() : mixed
Return values
mixed —manageDeprecatedMembers()
private
manageDeprecatedMembers(DavCard $davCard) : mixed
Parameters
- $davCard : DavCard
Return values
mixed —manageLocalContact()
private
manageLocalContact(DavCard $davCard) : mixed
Parameters
- $davCard : DavCard
Return values
mixed —manageMember()
private
manageMember(DeprecatedCircle $circle, DavCard $davCard, int $type) : mixed
Parameters
- $circle : DeprecatedCircle
- $davCard : DavCard
- $type : int
Return values
mixed —manageNewCircles()
private
manageNewCircles(DavCard $davCard, array<string|int, mixed> $fromCard, array<string|int, mixed> $current) : mixed
Parameters
- $davCard : DavCard
- $fromCard : array<string|int, mixed>
- $current : array<string|int, mixed>
Return values
mixed —manageRemoteContact()
private
manageRemoteContact(DavCard $davCard) : mixed
Parameters
- $davCard : DavCard
Return values
mixed —migrateBook()
private
migrateBook(int $bookId) : mixed
Parameters
- $bookId : int