Documentation

API_CardDAV_Model
in package

Api CardDAV Model Class.

Tags
copyright

YetiForce Sp. z o.o

license

YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)

author

Mariusz Krzaczkowski m.krzaczkowski@yetiforce.com

Table of Contents

ADDRESSBOOK_NAME  = 'YFAddressBook'
PRODID  = 'YetiForceCRM'
$addressBookId  : mixed
$davUsers  : array<string|int, Users_Record_Model>
$mailFields  : mixed
$pdo  : mixed
$telFields  : mixed
$user  : bool|Users_Record_Model
$cache  : mixed
$crmRecords  : mixed
__construct()  : mixed
cardDav2Crm()  : mixed
cardDavCrm2Dav()  : mixed
cleanForUpdate()  : Component
Clean for update.
createCard()  : mixed
createRecord()  : void
Create record.
deletedCard()  : mixed
getCardDetail()  : mixed
getCrmRecordsToSync()  : mixed
getDavCardsToSync()  : mixed
setCardAddres()  : Component
Set card addres.
syncAddressBooks()  : mixed
syncCrmRecord()  : mixed
updateCard()  : mixed
updateRecord()  : mixed
Update record.
markComplete()  : mixed
updateIdAndModifiedTime()  : void
Update ID and modified time.

Constants

ADDRESSBOOK_NAME

public mixed ADDRESSBOOK_NAME = 'YFAddressBook'

PRODID

public mixed PRODID = 'YetiForceCRM'

Properties

$addressBookId

public mixed $addressBookId = alse

$davUsers

public array<string|int, Users_Record_Model> $davUsers = []

$mailFields

public mixed $mailFields = ['Contacts' => ['email' => 'WORK', 'secondary_email' => 'HOME'], 'OSSEmployees' => ['business_mail' => 'WORK', 'private_mail' => 'HOME']]

$telFields

public mixed $telFields = ['Contacts' => ['phone' => 'WORK', 'mobile' => 'CELL'], 'OSSEmployees' => ['business_phone' => 'WORK', 'private_phone' => 'CELL']]

$user

public bool|Users_Record_Model $user = alse

$cache

protected static mixed $cache = []

$crmRecords

protected mixed $crmRecords = []

Methods

__construct()

public __construct() : mixed
Return values
mixed

cardDav2Crm()

public cardDav2Crm() : mixed
Return values
mixed

cardDavCrm2Dav()

public cardDavCrm2Dav() : mixed
Return values
mixed

cleanForUpdate()

Clean for update.

public cleanForUpdate(Component $vcard) : Component
Parameters
$vcard : Component
Return values
Component

createCard()

public createCard(mixed $moduleName, mixed $record) : mixed
Parameters
$moduleName : mixed
$record : mixed
Return values
mixed

createRecord()

Create record.

public createRecord(string $moduleName, array<string|int, mixed> $card) : void
Parameters
$moduleName : string
$card : array<string|int, mixed>
Return values
void

deletedCard()

public deletedCard(mixed $card) : mixed
Parameters
$card : mixed
Return values
mixed

getCardDetail()

public getCardDetail(mixed $crmid) : mixed
Parameters
$crmid : mixed
Return values
mixed

getCrmRecordsToSync()

public getCrmRecordsToSync(mixed $moduleName) : mixed
Parameters
$moduleName : mixed
Return values
mixed

getDavCardsToSync()

public getDavCardsToSync() : mixed
Return values
mixed

setCardAddres()

Set card addres.

public setCardAddres(Component $vcard, string $moduleName, array<string|int, mixed> $record) : Component
Parameters
$vcard : Component
$moduleName : string
$record : array<string|int, mixed>
Return values
Component

syncAddressBooks()

public syncAddressBooks() : mixed
Return values
mixed

syncCrmRecord()

public syncCrmRecord(mixed $moduleName) : mixed
Parameters
$moduleName : mixed
Return values
mixed

updateCard()

public updateCard(mixed $moduleName, mixed $record, mixed $card) : mixed
Parameters
$moduleName : mixed
$record : mixed
$card : mixed
Return values
mixed

markComplete()

protected markComplete(mixed $moduleName, mixed $crmid) : mixed
Parameters
$moduleName : mixed
$crmid : mixed
Return values
mixed

updateIdAndModifiedTime()

Update ID and modified time.

protected updateIdAndModifiedTime(Vtiger_Record_Model $record, array<string|int, mixed> $card) : void
Parameters
$record : Vtiger_Record_Model
$card : array<string|int, mixed>
Return values
void

        

Search results