Methods |
public
|
getContactById(int $iUserId, mixed $mContactId): Contact|false
|
#
|
public
|
GetMyGlobalContact(int $iUserId): Contact|null
|
#
|
public
|
GetContactByTypeId(mixed $mTypeId, $mContactId): Contact|bool
|
#
|
public
|
getContactByEmail(int $iUserId, string $sEmail): Contact|bool
|
#
|
public
|
getContactByStrId(int $iUserId, string $sContactStrId): Contact|bool
|
#
|
public
|
getSharedContactIds(int $iUserId, $sContactStrId): array|bool
|
#
|
public
|
getContactGroupIds(Contact $oContact): array|bool
|
#
|
public
|
getGroupById(int $iUserId, mixed $mGroupId): Group
|
#
|
public
|
getGroupByStrId(int $iUserId, string $sGroupStrId): Group
|
#
|
public
|
getGroupByName(int $iUserId, string $sName): Group
|
#
|
public
|
getContactItemsWithoutOrder(int $iUserId, int $iOffset, int $iRequestLimit): bool|array
|
#
|
public
|
getContactItems(
int $iSortField,
int $iSortOrder,
int $iOffset,
int $iRequestLimit,
array $aFilters,
int $iIdGroup,
): array
|
#
|
public
|
getContactItemsCount(
int $iUserId,
string $sSearch,
string $sFirstCharacter,
int $iGroupId,
int $iTenantId = null,
$bAll = false,
): int
|
#
|
public
|
getGroupItems(
int $iUserId,
int $iSortField,
int $iSortOrder,
int $iOffset,
int $iRequestLimit,
string $sSearch,
string $sFirstCharacter,
int $iContactId,
): bool|array
|
#
|
public
|
getGroupItemsCount(int $iUserId, string $sSearch, string $sFirstCharacter): int
|
#
|
public
|
GetAllContactsNamesWithPhones(int $iUserId, int $iTenantId = 0, bool $bAddGlobal = true): bool|array
Parameters
$iTenantId |
= 0
|
$bAddGlobal |
= true
|
|
#
|
public
|
GetSuggestContactItems(int $iUserId, string $sSearch, int $iRequestLimit, bool $bPhoneOnly = false): bool|array
|
#
|
public
|
GetSuggestGroupItems(int $iUserId, string $sSearch, int $iRequestLimit): bool|array
|
#
|
public
|
updateContact(Contact $oContact): bool
|
#
|
public
|
updateContactUserId(Contact $oContact, int $iUserId): string
|
#
|
public
|
updateGroup(Group $oGroup): bool
|
#
|
public
|
createContact(Contact $oContact): bool
|
#
|
public
|
createGroup(Group $oGroup): bool
|
#
|
public
|
deleteContacts(int $iUserId, array $aContactIds, $sAddressBook = Constants::ADDRESSBOOK_DEFAULT_NAME): bool
|
#
|
public
|
deleteSuggestContacts(int $iUserId, array $aContactIds): bool
|
#
|
public
|
deleteGroup(int $iUserId, string $iGroupId): bool
|
#
|
public
|
updateSuggestTable(int $iUserId, $aEmails): bool
|
#
|
public
|
clearAllContactsAndGroups(Account $oAccount): bool
|
#
|
public
|
flushContacts(): bool
|
#
|
public
|
addContactsToGroup(Group $oGroup, array $aContactIds): bool
|
#
|
public
|
GetGlobalContactById(int $iUserId, mixed $mContactId): Contact|false
|
#
|